Skip to content

Commit

Permalink
Improve "Could not get version information" exception
Browse files Browse the repository at this point in the history
  • Loading branch information
blueyed committed Jul 8, 2018
1 parent 9e66253 commit f86e5b6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion jedi/api/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ def __init__(self, executable):
info = self._subprocess._send(None, _get_info)
except Exception as exc:
raise InvalidPythonEnvironment(
"Could not get version information (%r)" % exc)
"Could not get version information for %r: %r" % (
executable,
exc))

self.executable = info[0]
"""
Expand Down

0 comments on commit f86e5b6

Please sign in to comment.