traceback
The report Python prints when an unhandled exception stops a program, listing the chain of calls that led there and ending with the error.
In more detail
Read it from the bottom: the last line names the exception and message, and the line above shows where it happened. Each earlier pair of lines is a frame, one unfinished call, with the oldest at the top. The useful line to fix is usually the lowest one in your own code, not in a library.
Related terms
- exception — An error object a program raises to stop normal flow and report that something went wrong.
- stack frame — The block of memory for one function call on the call stack, holding that call's local variables and return point.
Taught in
- Strings, Delimiters And Concatenation — Hands-on Python: Complete Video Course & Book
- Variables And Assignment — Hands-on Python: Complete Video Course & Book
- Function Parameters — Hands-on Python: Complete Video Course & Book
- Reading Error Messages — Hands-on Python: Complete Video Course & Book
- Raising, And Writing Your Own Exception — Hands-on Python: Complete Video Course & Book
- Reading A Traceback Like A Professional — Hands-on Python: Complete Video Course & Book
- Try, Except, Else And Finally — PCEP Certified Entry-Level Python Programmer (PCEP-30-02) Exam Prep
- Exception Classes Of Your Own — PCAP Certified Associate in Python Programming (PCAP-31-03) Exam Prep
- Streams, Handles And Open Modes — PCAP Certified Associate in Python Programming (PCAP-31-03) Exam Prep