Last active
July 14, 2019 05:59
-
-
Save camelcaseblog/f034b381da279841d38f428c0d957a7f to your computer and use it in GitHub Desktop.
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: | |
ratio = a / b | |
except ZeroDivisionError: | |
ratio = float(‘inf’) | |
except TypeError as e: | |
logger.critical(‘Got TypeError: %s’, e) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment