Improve error message when the jedi module fails to load

Fixes https://github.com/davidhalter/jedi-vim/issues/560.
This commit is contained in:
Daniel Hahler
2016-08-03 11:08:30 +02:00
parent 2eabe57616
commit 3882c5dd32

View File

@@ -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):