Created
November 3, 2014 17:37
-
-
Save lucrib/d21885c5dfe29961b34f to your computer and use it in GitHub Desktop.
Python Exception Handling
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
try: | |
You do your operations here; | |
...................... | |
except ExceptionI: | |
If there is ExceptionI, then execute this block. | |
except ExceptionII: | |
If there is ExceptionII, then execute this block. | |
...................... | |
else: | |
If there is no exception then execute this block. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment