Fix potential bug passing exception to function excepting str
Found while adding type annotations.
This commit is contained in:
1 parent
b9fd84e11c
commit
392dcdf015
1 file changed
+1
-1
@@ -205,7 +205,7 @@ def _get_buildout_script_paths(search_path: Path):
|
||||
except (UnicodeDecodeError, IOError) as e:
|
||||
# Probably a binary file; permission error or race cond. because
|
||||
# file got deleted. Ignore it.
|
||||
debug.warning(e)
|
||||
debug.warning(str(e))
|
||||
continue
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user