Skip to content

Instantly share code, notes, and snippets.

@AndreiPashkin
Created August 12, 2015 09:03
Show Gist options
  • Save AndreiPashkin/b27d5888b0157c245e68 to your computer and use it in GitHub Desktop.
Save AndreiPashkin/b27d5888b0157c245e68 to your computer and use it in GitHub Desktop.
Example of Python traceback
Traceback (most recent call last):
File "traceback_print_exc.py", line 20, in <module>
produce_exception()
File "/Users/dhellmann/Documents/PyMOTW/src/PyMOTW/traceback/traceback_example.py", line 16, in produce_exception
produce_exception(recursion_level-1)
File "/Users/dhellmann/Documents/PyMOTW/src/PyMOTW/traceback/traceback_example.py", line 16, in produce_exception
produce_exception(recursion_level-1)
File "/Users/dhellmann/Documents/PyMOTW/src/PyMOTW/traceback/traceback_example.py", line 18, in produce_exception
raise RuntimeError()
RuntimeError
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment