From f6c3e4652c8f24a915c0ea6c52f54e6ac9b40564 Mon Sep 17 00:00:00 2001 From: Lucas Duailibe Date: Sun, 10 Mar 2013 18:12:16 -0300 Subject: [PATCH] fix unicode error --- beets/ui/commands.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/beets/ui/commands.py b/beets/ui/commands.py index 39702a85e..3f76a8328 100644 --- a/beets/ui/commands.py +++ b/beets/ui/commands.py @@ -643,9 +643,11 @@ def import_files(lib, paths, query): for path in paths: fullpath = syspath(normpath(path)) if not config['import']['singletons'] and not os.path.isdir(fullpath): - raise ui.UserError('not a directory: ' + path) + raise ui.UserError(u'not a directory: {0}'.format( + displayable_path(path))) elif config['import']['singletons'] and not os.path.exists(fullpath): - raise ui.UserError('no such file: ' + path) + raise ui.UserError(u'no such file: {0}'.format( + displayable_path(path))) # Check parameter consistency. if config['import']['quiet'] and config['import']['timid']: