Usually, python tracebacks look like this To me, this output is hard to follow. Here is what I like more… … and how to get this for your code import sys, traceback, math def fsexcept(exc_type, exc_value, exc_traceback): frames = traceback.extract_tb(exc_traceback) framewidth = int(math.ceil(math.log(len(frames))/math.log(10))) filewidth = 0 linewidth = 0 functionwidth […]