mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2026-10-21 13:27:13 +08:00
VimError: set self.message
`self.message` is used in `__str__`.
Without this, tracebacks end like this:
Traceback (most recent call last):
[...]
File "…/vim/neobundles/jedi/jedi_vim.py", line 87, in _catch_
exception
raise VimError(result['exception'], result['throwpoint'], string)
jedi_vim.VimError: <unprintable VimError object>
This commit is contained in:
1 parent
e5038cc9fa
commit
676c558110
1 file changed
+1
@@ -68,6 +68,7 @@ def _check_jedi_availability(show_error=False):
|
|||||||
class VimError(Exception):
|
class VimError(Exception):
|
||||||
def __init__(self, message, throwpoint, executing):
|
def __init__(self, message, throwpoint, executing):
|
||||||
super(type(self), self).__init__(message)
|
super(type(self), self).__init__(message)
|
||||||
|
self.message = message
|
||||||
self.throwpoint = throwpoint
|
self.throwpoint = throwpoint
|
||||||
self.executing = executing
|
self.executing = executing
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user