Created
July 1, 2016 08:43
-
-
Save alex-eri/69c9eee50353fc57fb442380f1c70d34 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
try: | |
code | |
except RuntimeError as e: | |
print(e) | |
except DatabaseError as e: | |
reconnect() | |
print(e) | |
except Exception as e: | |
print(e) | |
exit(-1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment