Skip to content

Instantly share code, notes, and snippets.

@thigm85
Created March 9, 2016 14:47
Show Gist options
  • Save thigm85/6d9842debcc113e95e7e to your computer and use it in GitHub Desktop.
Save thigm85/6d9842debcc113e95e7e to your computer and use it in GitHub Desktop.
Incomplete example of how to reraise exception in python. Reference: https://docs.python.org/2/tutorial/errors.html#raising-exceptions
try:
raise NameError('HiThere')
except NameError:
print 'An exception flew by!'
raise
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment