Skip to content

Instantly share code, notes, and snippets.

@internetimagery
Last active October 19, 2015 12:15
Show Gist options
  • Save internetimagery/e6ac87dcce7f295ebc9e to your computer and use it in GitHub Desktop.
Save internetimagery/e6ac87dcce7f295ebc9e to your computer and use it in GitHub Desktop.
Display exceptions during scriptjob
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