Show More
@@ -112,8 +112,11 b' class IPythonPTCompleter(Completer):' | |||||
112 | try: |
|
112 | try: | |
113 | yield from self._get_completions(body, offset, cursor_position, self.ipy_completer) |
|
113 | yield from self._get_completions(body, offset, cursor_position, self.ipy_completer) | |
114 | except Exception as e: |
|
114 | except Exception as e: | |
115 | from traceback import print_tb |
|
115 | try: | |
116 | print_tb(e) |
|
116 | exc_type, exc_value, exc_tb = sys.exc_info() | |
|
117 | traceback.print_exception(exc_type, exc_value, exc_tb) | |||
|
118 | except AttributeError: | |||
|
119 | print('Unrecoverable Error in completions') | |||
117 |
|
120 | |||
118 | @staticmethod |
|
121 | @staticmethod | |
119 | def _get_completions(body, offset, cursor_position, ipyc): |
|
122 | def _get_completions(body, offset, cursor_position, ipyc): |
General Comments 0
You need to be logged in to leave comments.
Login now