mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2026-10-15 10:32:58 +08:00
Improve error message when the jedi module fails to load
Fixes https://github.com/davidhalter/jedi-vim/issues/560.
This commit is contained in:
1 parent
2eabe57616
commit
3882c5dd32
1 file changed
+4
-1
+4
-1
@@ -100,7 +100,10 @@ else:
|
||||
try:
|
||||
version = jedi.__version__
|
||||
except Exception as e: # e.g. AttributeError
|
||||
echo_highlight("Could not load jedi python module: {0}".format(e))
|
||||
echo_highlight(
|
||||
"Error when loading the jedi python module ({0}). "
|
||||
"Please ensure that Jedi is installed correctly (see Installation "
|
||||
"in the README.".format(e))
|
||||
jedi = None
|
||||
else:
|
||||
if isinstance(version, str):
|
||||
|
||||
Reference in new issue
Block a user