Last active
December 13, 2015 18:49
-
-
Save tomleo/4958306 to your computer and use it in GitHub Desktop.
A better UX for python tracebacks http://tomleos.tumblr.com/post/43123575189/a-better-ux-for-python-tracebacks
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
def divide(a, b): | |
return a/b | |
def calculate(a, b): | |
try: | |
result = divide(a, b) | |
except: | |
raise Exception('You Done Goofed') | |
return result | |
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
def divide(a, b): | |
return a/b | |
def calculate(a, b): | |
try: | |
result = divide(a, b) | |
except: | |
raise | |
return result |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment