Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

catch unrecoverable error #12413

Merged
merged 1 commit into from Jun 30, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 5 additions & 2 deletions IPython/terminal/ptutils.py
Expand Up @@ -112,8 +112,11 @@ def get_completions(self, document, complete_event):
try:
yield from self._get_completions(body, offset, cursor_position, self.ipy_completer)
except Exception as e:
from traceback import print_tb
print_tb(e)
try:
exc_type, exc_value, exc_tb = sys.exc_info()
traceback.print_exception(exc_type, exc_value, exc_tb)
except AttributeError:
print('Unrecoverable Error in completions')

@staticmethod
def _get_completions(body, offset, cursor_position, ipyc):
Expand Down