def format_exc_skip(skip, limit=None):
etype, val, tb = sys.exc_info()<EOL>for i in range(skip):<EOL><INDENT>tb = tb.tb_next<EOL><DEDENT>return ('<STR_LIT>'.join(format_exception(etype, val, tb, limit))).rstrip()<EOL>
Like traceback.format_exc but allow skipping the first frames.