Skip to content

Instantly share code, notes, and snippets.

@mbylstra
Created December 3, 2013 23:31
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 mbylstra/7779646 to your computer and use it in GitHub Desktop.
Save mbylstra/7779646 to your computer and use it in GitHub Desktop.
print full stack trace of Exception from https://djangosnippets.org/snippets/1654/
import traceback
try:
#some code
except Exception, e:
print ''.join(traceback.format_exception(*sys.exc_info()))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment