Created
November 9, 2020 13:37
-
-
Save tsuyoshicho/838a5b26bac72ec02eb1cb45028c2b95 to your computer and use it in GitHub Desktop.
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
# vim: fileencoding=utf-8 | |
def errorget(): | |
raise BaseException(2) | |
def main(): | |
i = 1 | |
try: | |
res = errorget() | |
except BaseException as e: | |
i = e | |
finally: | |
pass | |
print(i) | |
if __name__ == '__main__': | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
result: