mirror of
https://github.com/davidhalter/jedi.git
synced 2026-01-15 08:26:42 +08:00
Fix potential bug passing exception to function excepting str
Found while adding type annotations.
This commit is contained in:
@@ -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