Last active
August 29, 2015 14:00
-
-
Save avenet/11303537 to your computer and use it in GitHub Desktop.
Get exception traceback
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import traceback | |
try: | |
raise Exception("This is the exception text") | |
except Exception, e: | |
exception_traceback = traceback.format_exc() | |
print exception_traceback |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment