Created
September 22, 2017 15:45
-
-
Save osvalr/ce2e807dfdc1e90661fe2aace04200ef to your computer and use it in GitHub Desktop.
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
#!/usr/sbin/python | |
def raise_tef(res): | |
aa = [] | |
try: | |
print("Raising") | |
bb = aa[0] | |
except IndexError: | |
print("Exception Raised") | |
return res | |
finally: | |
print("Message posted") | |
print("This is never printed") | |
res = raise_tef("Expected value") | |
print("after raise_tef(): %s" % res) |
Author
osvalr
commented
Sep 22, 2017
•
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment