Skip to content

Instantly share code, notes, and snippets.

@hclivess
Created January 5, 2023 04:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hclivess/03337c9f653d9aceea9173061db9982b to your computer and use it in GitHub Desktop.
Save hclivess/03337c9f653d9aceea9173061db9982b to your computer and use it in GitHub Desktop.
Python raise inheritance to never forget
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