Skip to content

Commit

Permalink
Restore BsbQuit_excepthook
Browse files Browse the repository at this point in the history
This is necessary for ipdb.

Closes ipython#14396
  • Loading branch information
Carreau committed Apr 12, 2024
1 parent 5b0fc6f commit 002c17a
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 002c17a

Please sign in to comment.