Created
January 5, 2023 04:15
-
-
Save hclivess/03337c9f653d9aceea9173061db9982b to your computer and use it in GitHub Desktop.
Python raise inheritance to never forget
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: | |
try: | |
try: | |
print(1/0) | |
except Exception as e: | |
raise(e) | |
except: | |
print("I will not raise") | |
except: | |
print("I never trigger") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment