Show More
@@ -27,4 +27,3 b' __pycache__' | |||||
27 | .pytest_cache |
|
27 | .pytest_cache | |
28 | .python-version |
|
28 | .python-version | |
29 | venv*/ |
|
29 | venv*/ | |
30 | .idea/ |
|
@@ -14,6 +14,7 b'' | |||||
14 | import abc |
|
14 | import abc | |
15 | import ast |
|
15 | import ast | |
16 | import atexit |
|
16 | import atexit | |
|
17 | import bdb | |||
17 | import builtins as builtin_mod |
|
18 | import builtins as builtin_mod | |
18 | import dis |
|
19 | import dis | |
19 | import functools |
|
20 | import functools | |
@@ -3558,6 +3559,11 b' class InteractiveShell(SingletonConfigurable):' | |||||
3558 | result.error_in_exec = e |
|
3559 | result.error_in_exec = e | |
3559 | self.showtraceback(exception_only=True) |
|
3560 | self.showtraceback(exception_only=True) | |
3560 | warn("To exit: use 'exit', 'quit', or Ctrl-D.", stacklevel=1) |
|
3561 | warn("To exit: use 'exit', 'quit', or Ctrl-D.", stacklevel=1) | |
|
3562 | except bdb.BdbQuit: | |||
|
3563 | etype, value, tb = sys.exc_info() | |||
|
3564 | if result is not None: | |||
|
3565 | result.error_in_exec = value | |||
|
3566 | # the BdbQuit stops here | |||
3561 | except self.custom_exceptions: |
|
3567 | except self.custom_exceptions: | |
3562 | etype, value, tb = sys.exc_info() |
|
3568 | etype, value, tb = sys.exc_info() | |
3563 | if result is not None: |
|
3569 | if result is not None: |
General Comments 0
You need to be logged in to leave comments.
Login now