Skip to content

Commit

Permalink
Restore BdbQuit_excepthook (#14399)
Browse files Browse the repository at this point in the history
This is necessary for ipdb.

Closes #14396
  • Loading branch information
Carreau committed Apr 15, 2024
2 parents 3b57430 + 002c17a commit 8ff4109
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions IPython/core/debugger.py
Expand Up @@ -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+')


Expand Down

0 comments on commit 8ff4109

Please sign in to comment.