Skip to content

Instantly share code, notes, and snippets.

@yoki
Created December 26, 2020 01:50
Show Gist options
  • Save yoki/f76be8cc532414aa1898ae91a5887313 to your computer and use it in GitHub Desktop.
Save yoki/f76be8cc532414aa1898ae91a5887313 to your computer and use it in GitHub Desktop.
Python Errors and Exceptions
try:
func()
except IOError as exc:
print(exc)
raise exc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment