MCPcopy Create free account
hub / github.com/eshirazi/python-with-braces / format_exception_only

Function format_exception_only

Lib/traceback.py:147–200  ·  view source on GitHub ↗

Format the exception part of a traceback. The arguments are the exception type and value such as given by sys.last_type and sys.last_value. The return value is a list of strings, each ending in a newline. Normally, the list contains a single string; however, for SyntaxError exc

(etype, value)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

print_exceptionFunction · 0.85
format_exceptionFunction · 0.85

Calls 7

_format_final_exc_lineFunction · 0.85
stripMethod · 0.80
lstripMethod · 0.80
rstripMethod · 0.80
isspaceMethod · 0.80
appendMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected