Fix err undefined exception.
This commit is contained in:
parent
b7444dd9b0
commit
dbdec516b9
@ -72,7 +72,7 @@ def find_folder( filename):
|
|||||||
try:
|
try:
|
||||||
if os.path.isdir(filename):
|
if os.path.isdir(filename):
|
||||||
return(filename)
|
return(filename)
|
||||||
except UnicodeError:
|
except UnicodeError as err:
|
||||||
LOG.error("Filename %s raised a Unicode Error %s", repr(filename), err)
|
LOG.error("Filename %s raised a Unicode Error %s", repr(filename), err)
|
||||||
|
|
||||||
LOG.debug("Filename %s either not found or not a directory.",
|
LOG.debug("Filename %s either not found or not a directory.",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user