Created
March 9, 2016 14:47
-
-
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
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
| 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