MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / format_exc

Function format_exc

tools/python-3.11.9-amd64/Lib/traceback.py:182–184  ·  view source on GitHub ↗

Like print_exc() but return a string.

(limit=None, chain=True)

Source from the content-addressed store, hash-verified

180 print_exception(*sys.exc_info(), limit=limit, file=file, chain=chain)
181
182def format_exc(limit=None, chain=True):
183 """Like print_exc() but return a string."""
184 return "".join(format_exception(*sys.exc_info(), limit=limit, chain=chain))
185
186def print_last(limit=None, file=None, chain=True):
187 """This is a shorthand for 'print_exception(sys.last_type,

Callers 2

_handle_requestMethod · 0.90
serve_clientMethod · 0.90

Calls 2

format_exceptionFunction · 0.85
joinMethod · 0.45

Tested by

no test coverage detected