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

Taught in

References

Certification courses