6.1.9. sphinx.util.format_exception_cut_frames

sphinx.util.format_exception_cut_frames(x=1)[source]

Format an exception with traceback, but only the last x frames.