environment/lib/python2.7/site-packages/IPython/core/application.py
def init_crash_handler(self):
        """Create a crash handler, typically setting sys.excepthook to it."""
        self.crash_handler = self.crash_handler_class(self)
        sys.excepthook = self.excepthook
        def unset_crashhandler():
            sys.excepthook = sys.__excepthook__
        atexit.register(unset_crashhandler)
def init_crash_handler(self):
        self.crash_handler = self.crash_handler_class(self)
        sys.excepthook = self.excepthook
        def unset_crashhandler():
            sys.excepthook = sys.__excepthook__
        atexit.register(unset_crashhandler)
def init_crash_handler ( self ) : self . crash_handler = self . crash_handler_class ( self ) sys . excepthook = self . excepthook def unset_crashhandler ( ) : sys . excepthook = sys . __excepthook__ atexit . register ( unset_crashhandler )
Create a crash handler, typically setting sys.excepthook to it.
Create a crash handler typically setting sys . excepthook to it .