Fixed variable referenced before assignment.

This commit is contained in:
Barsanuphe 2015-04-16 23:44:49 +02:00
parent 0c7823b4a5
commit f72172aaa2

View file

@ -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