From 676c5581102a40732effc1138c32e1953f85536a Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Sat, 2 May 2015 11:51:27 +0200 Subject: [PATCH] VimError: set self.message MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `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: --- jedi_vim.py | 1 + 1 file changed, 1 insertion(+) diff --git a/jedi_vim.py b/jedi_vim.py index 08ccb91..475885c 100644 --- a/jedi_vim.py +++ b/jedi_vim.py @@ -68,6 +68,7 @@ def _check_jedi_availability(show_error=False): class VimError(Exception): def __init__(self, message, throwpoint, executing): super(type(self), self).__init__(message) + self.message = message self.throwpoint = throwpoint self.executing = executing