Skip to content

Instantly share code, notes, and snippets.

@ento
Created March 31, 2010 09:19
Show Gist options
  • 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