Getting the Most Out of a Python Traceback
Rich Bibby
5 Lessons
21m
basics
python
Python prints a traceback when an exception is raised in your code. The traceback output can be a bit overwhelming if youβre seeing it for the first time or you donβt know what itβs telling you. But the Python traceback has a wealth of information that can help you diagnose and fix the reason for the exception being raised in your code. Understanding what information a Python traceback provides is vital to becoming a better Python programmer.
By the end of this course, youβll be able to:
- Make sense of the next traceback you see
- Recognize some of the more common tracebacks
- Log a traceback successfully while still handling the exception
Getting the Most Out of a Python Traceback
5 Lessons 21m
About Rich Bibby
Rich is an avid Pythonista and a video instructor at Real Python. He is also a Network Engineer using Python to automate the management of a large network infrastructure. He lives in Dubai, UAE, with his wife and daughter plus a Miniature Schnauzer.
Β» More about Rich




mikesult on Aug. 12, 2020
I liked the course, it gave me a clear understanding of what information the traceback is providing on exceptions. Also appreciate your pointing to the built-in traceback module for us to further explore now with a better understanding. Thanks