Skip to content

Instantly share code, notes, and snippets.

@JeffreyMFarley
Last active March 16, 2016 13:52
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 JeffreyMFarley/3b6ca9990a7ffcdd2f8e to your computer and use it in GitHub Desktop.
Save JeffreyMFarley/3b6ca9990a7ffcdd2f8e to your computer and use it in GitHub Desktop.
import sys, traceback
try:
i = 1 / 0
except Exception:
for fncall in traceback.format_exception(*sys.exc_info()):
print(fncall)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment