sys.excepthook()

sys.excepthook(exctype, value, traceback) → None

Handle an exception by displaying it with a traceback on sys.stderr.