From f72172aaa203ce393efd66eb7af30740d68951af Mon Sep 17 00:00:00 2001 From: Barsanuphe Date: Thu, 16 Apr 2015 23:44:49 +0200 Subject: [PATCH] Fixed variable referenced before assignment. --- beets/ui/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beets/ui/commands.py b/beets/ui/commands.py index 3f456f8ff..0924a3b04 100644 --- a/beets/ui/commands.py +++ b/beets/ui/commands.py @@ -857,7 +857,7 @@ def import_files(lib, paths, query): loghandler = logging.FileHandler(logpath) except IOError: raise ui.UserError(u"could not open log file for writing: " - u"{0}".format(displayable_path(loghandler))) + u"{0}".format(displayable_path(logpath))) else: loghandler = None