Skip to content

Instantly share code, notes, and snippets.

@tkaemming
Created February 16, 2017 17:50
Show Gist options
  • Save tkaemming/d613d745afa34d78c10f5c4d666e0f83 to your computer and use it in GitHub Desktop.
Save tkaemming/d613d745afa34d78c10f5c4d666e0f83 to your computer and use it in GitHub Desktop.
def foo():
bar()
def bar():
try:
baz()
except Exception as error:
import traceback
traceback.print_exc()
def baz():
qux()
def qux():
raise NotImplementedError
foo()
Traceback (most recent call last):
File "tb.py", line 6, in bar
baz()
File "tb.py", line 12, in baz
qux()
File "tb.py", line 15, in qux
raise NotImplementedError
NotImplementedError
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment