Fix err undefined exception.
This commit is contained in:
parent
6f8e7b4694
commit
ee00bc8881
@ -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.",
|
||||
|
Loading…
Reference in New Issue
Block a user