Fix err undefined exception.

This commit is contained in:
John Ralls 2016-01-18 09:15:32 -08:00
parent b7444dd9b0
commit dbdec516b9

View File

@ -72,7 +72,7 @@ def find_folder( filename):
try:
if os.path.isdir(filename):
return(filename)
except UnicodeError:
except UnicodeError as err:
LOG.error("Filename %s raised a Unicode Error %s", repr(filename), err)
LOG.debug("Filename %s either not found or not a directory.",