Return to Snippet

Revision: 17565
at September 9, 2009 17:20 by manatlan


Initial Code
import sys, traceback, string

def myExceptHook(type, value, tb):
   sys.__excepthook__(type, value, tb)
   lines = traceback.format_exception(type, value, tb)
   print string.join(lines)

sys.excepthook = myExceptHook

Initial URL

                                

Initial Description

                                

Initial Title
exceptions hook

Initial Tags
python

Initial Language
Python