diff --git a/IPython/core/debugger.py b/IPython/core/debugger.py index 4e4b17a..59cf24c 100644 --- a/IPython/core/debugger.py +++ b/IPython/core/debugger.py @@ -149,6 +149,17 @@ def make_arrow(pad): return '' +def BdbQuit_excepthook(et, ev, tb, excepthook=None): + """Exception hook which handles `BdbQuit` exceptions. + + All other exceptions are processed using the `excepthook` + parameter. + """ + raise ValueError( + "`BdbQuit_excepthook` is deprecated since version 5.1. It is still arround only because it is still imported by ipdb.", + ) + + RGX_EXTRA_INDENT = re.compile(r'(?<=\n)\s+')