I want to catch and log exceptions without exiting, e.g.,
try: do_stuff() except Exception, err: print(Exception, err) # I want to print the entir
traceback.format_exc() or sys.exc_info() will yield more info if that's what you want.
import traceback import sys try: do_stuff() except Exception: print(traceback.format_exc()) # or print(sys.exc_info()[2])