Fix err undefined exception.

This commit is contained in:
John Ralls 2016-01-18 09:15:32 -08:00
parent 6f8e7b4694
commit ee00bc8881

View File

@ -73,7 +73,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.",