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

Method init_crash_handler

IPython/core/application.py:245–251  ·  view source on GitHub ↗

Create a crash handler, typically setting sys.excepthook to it.

(self)

Source from the content-addressed store, hash-verified

243 return super(BaseIPythonApplication, self).initialize_subcommand(subc, argv)
244
245 def init_crash_handler(self):
246 """Create a crash handler, typically setting sys.excepthook to it."""
247 self.crash_handler = self.crash_handler_class(self)
248 sys.excepthook = self.excepthook
249 def unset_crashhandler():
250 sys.excepthook = sys.__excepthook__
251 atexit.register(unset_crashhandler)
252
253 def excepthook(self, etype, evalue, tb):
254 """this is sys.excepthook after init_crashhandler

Callers 1

initializeMethod · 0.95

Calls 1

registerMethod · 0.45

Tested by

no test coverage detected