From 392dcdf015123c5768aef45f56e756322638ec9f Mon Sep 17 00:00:00 2001 From: Peter Law Date: Sun, 30 Aug 2020 16:14:00 +0100 Subject: [PATCH] Fix potential bug passing exception to function excepting str Found while adding type annotations. --- jedi/inference/sys_path.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jedi/inference/sys_path.py b/jedi/inference/sys_path.py index e701686f..2e404279 100644 --- a/jedi/inference/sys_path.py +++ b/jedi/inference/sys_path.py @@ -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