#417657
import traceback try: raise Exception('foo') except: print traceback.format_exc() print "that's it"