Created
January 18, 2020 09:25
-
-
Save nim4n136/c43352bdb441ec213a70e70529084453 to your computer and use it in GitHub Desktop.
Try Catch python 3
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
| import traceback | |
| try: | |
| print(555) | |
| except Exception as e: | |
| print("type error: " + str(e)) | |
| print(traceback.format_exc()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment