Like print_exc() but return a string.
(limit=None, chain=True)
| 220 | print_exception(sys.exception(), limit=limit, file=file, chain=chain, **kwargs) |
| 221 | |
| 222 | def format_exc(limit=None, chain=True): |
| 223 | """Like print_exc() but return a string.""" |
| 224 | return "".join(format_exception(sys.exception(), limit=limit, chain=chain)) |
| 225 | |
| 226 | def print_last(limit=None, file=None, chain=True): |
| 227 | """This is a shorthand for 'print_exception(sys.last_exc, limit=limit, file=file, chain=chain)'.""" |
no test coverage detected
searching dependent graphs…