Web you could use traceback.format_exc which returns a str. Or traceback.print_exc prints to stdout. Format_exception_only (exc, / [, value]) ¶ format the exception part of a traceback. Web simplest form that worked for me. Etype, value, tb = sys.exc_info () return ''.join (format_exception (etype,. Format_exc () is really just.
Web you could use traceback.format_exc which returns a str. Or traceback.print_exc prints to stdout. Format_exception_only (exc, / [, value]) ¶ format the exception part of a traceback. Web simplest form that worked for me. Etype, value, tb = sys.exc_info () return ''.join (format_exception (etype,. Format_exc () is really just. Web you could use traceback.format_exc which returns a str.