Created
June 20, 2015 07:17
-
-
Save killpanda/3539b9e02270050469c7 to your computer and use it in GitHub Desktop.
test1.py
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
import sys | |
def test1(): | |
try: | |
raise Exception("tessssssssssssst") | |
except Exception as e: | |
_e = e | |
def test2(): | |
print(_e) | |
return test2 | |
if __name__ == '__main__': | |
test1()() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment