Last active
October 19, 2015 12:15
-
-
Save internetimagery/e6ac87dcce7f295ebc9e to your computer and use it in GitHub Desktop.
Display exceptions during scriptjob
This file contains hidden or 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: | |
pass | |
# Do scriptjob code in here. Since Scriptjobs do not display exceptions, do it ourselves. | |
except: | |
print traceback.format_exc() | |
raise |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment