Skip to content

Instantly share code, notes, and snippets.

@ento
Created March 31, 2010 09:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ento/350122 to your computer and use it in GitHub Desktop.
Save ento/350122 to your computer and use it in GitHub Desktop.
printing traceback info on python
import traceback, StringIO
fp = StringIO.StringIO()
traceback.print_exc(file=fp)
print fp.getvalue()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment