forked from VimPlug/jedi-vim
removed vim exceptions
This commit is contained in:
5
jedi.vim
5
jedi.vim
@@ -41,7 +41,7 @@ if 1:
|
|||||||
out.append(d)
|
out.append(d)
|
||||||
|
|
||||||
strout = str(out)
|
strout = str(out)
|
||||||
except Exception:
|
except (Exception, evaluate.MultiLevelAttributeError):
|
||||||
# print to stdout, will be in :messages
|
# print to stdout, will be in :messages
|
||||||
print(traceback.format_exc())
|
print(traceback.format_exc())
|
||||||
strout = ''
|
strout = ''
|
||||||
@@ -67,7 +67,7 @@ if 1:
|
|||||||
definitions = functions.get_definitions(source, row, column, buf_path)
|
definitions = functions.get_definitions(source, row, column, buf_path)
|
||||||
except functions.NotFoundError:
|
except functions.NotFoundError:
|
||||||
msg = 'There is no useful expression under the cursor'
|
msg = 'There is no useful expression under the cursor'
|
||||||
except Exception:
|
except (Exception, evaluate.MultiLevelAttributeError):
|
||||||
# print to stdout, will be in :messages
|
# print to stdout, will be in :messages
|
||||||
print(traceback.format_exc())
|
print(traceback.format_exc())
|
||||||
msg = "Some different eror, this shouldn't happen"
|
msg = "Some different eror, this shouldn't happen"
|
||||||
@@ -99,6 +99,7 @@ sys.path.insert(0, dirname(dirname(vim.eval('s:current_file'))))
|
|||||||
import traceback # for exception output
|
import traceback # for exception output
|
||||||
|
|
||||||
import functions
|
import functions
|
||||||
|
import evaluate
|
||||||
PYTHONEOF
|
PYTHONEOF
|
||||||
|
|
||||||
" vim: set et ts=4:
|
" vim: set et ts=4:
|
||||||
|
|||||||
Reference in New Issue
Block a user