Created
December 9, 2014 17:53
-
-
Save ironpythonbot/ffa7d8aa48cde940fc84 to your computer and use it in GitHub Desktop.
CodePlex Issue #30502 Plain Text Attachments
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
from __future__ import print_function | |
def raiser(): | |
print('raising an exception') | |
raise Exception() # unreported exception here | |
if __name__ == '__main__': | |
try: | |
raiser() | |
except Exception: # but is handled here | |
print('caught it') | |
#raiser() # ignoring exceptions would leave this unreported |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment