MCPcopy Create free account
hub / github.com/ipython/ipython / BdbQuit_excepthook

Function BdbQuit_excepthook

IPython/core/debugger.py:62–76  ·  view source on GitHub ↗

Exception hook which handles `BdbQuit` exceptions. All other exceptions are processed using the `excepthook` parameter.

(et, ev, tb, excepthook=None)

Source from the content-addressed store, hash-verified

60
61
62def BdbQuit_excepthook(et, ev, tb, excepthook=None):
63 """Exception hook which handles `BdbQuit` exceptions.
64
65 All other exceptions are processed using the `excepthook`
66 parameter.
67 """
68 warnings.warn("`BdbQuit_excepthook` is deprecated since version 5.1",
69 DeprecationWarning, stacklevel=2)
70 if et==bdb.BdbQuit:
71 print('Exiting Debugger.')
72 elif excepthook is not None:
73 excepthook(et, ev, tb)
74 else:
75 # Backwards compatibility. Raise deprecation warning?
76 BdbQuit_excepthook.excepthook_ori(et,ev,tb)
77
78
79def BdbQuit_IPython_excepthook(self,et,ev,tb,tb_offset=None):

Callers

nothing calls this directly

Calls 1

warnMethod · 0.80

Tested by

no test coverage detected