I have a program, a part of which executes a loop. During the execution of this loop, there are exceptions. Obviously, I would like my program to run without errors, but for
try: #stuff except Exception as e: print e
The traceback module provides various functions for extracting more information from the exception object (e, above).
traceback
e
Source Errors and Exceptions