Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8ff4109

Browse files
authored
Restore BdbQuit_excepthook (#14399)
This is necessary for ipdb. Closes #14396
2 parents 3b57430 + 002c17a commit 8ff4109

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

IPython/core/debugger.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,17 @@ def make_arrow(pad):
149149
return ''
150150

151151

152+
def BdbQuit_excepthook(et, ev, tb, excepthook=None):
153+
"""Exception hook which handles `BdbQuit` exceptions.
154+
155+
All other exceptions are processed using the `excepthook`
156+
parameter.
157+
"""
158+
raise ValueError(
159+
"`BdbQuit_excepthook` is deprecated since version 5.1. It is still arround only because it is still imported by ipdb.",
160+
)
161+
162+
152163
RGX_EXTRA_INDENT = re.compile(r'(?<=\n)\s+')
153164

154165

0 commit comments

Comments
 (0)