mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-22 21:31:26 +08:00
removed catching MultiLevelAtrributeError at certain places, because catching exceptions does that now, too.
This commit is contained in:
@@ -56,7 +56,7 @@ if 1:
|
|||||||
out.append(d)
|
out.append(d)
|
||||||
|
|
||||||
strout = str(out)
|
strout = str(out)
|
||||||
except (Exception, evaluate.MultiLevelAttributeError):
|
except Exception:
|
||||||
# print to stdout, will be in :messages
|
# print to stdout, will be in :messages
|
||||||
print(traceback.format_exc())
|
print(traceback.format_exc())
|
||||||
strout = ''
|
strout = ''
|
||||||
@@ -82,7 +82,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, evaluate.MultiLevelAttributeError):
|
except Exception:
|
||||||
# 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"
|
||||||
@@ -115,7 +115,6 @@ import traceback # for exception output
|
|||||||
import re
|
import re
|
||||||
|
|
||||||
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