Last active
April 17, 2021 03:01
-
-
Save ofelix03/ce1e525b372675d85e3440c958b56c35 to your computer and use it in GitHub Desktop.
raising-exceptions-inside-if-conditionals-bad
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
| if something_is_wrong: | |
| raise Exception("Something is wrong") | |
| else: | |
| # perform appropriate action | |
| pass |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment