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
I find this to be much more useful for debugging:
from traceback import print_exc try: raise Exception("doh!") except: print_exc()