Like print_exc() but return a string.
(limit=None, chain=True)
| 210 | print_exception(sys.exception(), limit=limit, file=file, chain=chain) |
| 211 | |
| 212 | def format_exc(limit=None, chain=True): |
| 213 | """Like print_exc() but return a string.""" |
| 214 | return "".join(format_exception(sys.exception(), limit=limit, chain=chain)) |
| 215 | |
| 216 | def print_last(limit=None, file=None, chain=True): |
| 217 | """This is a shorthand for 'print_exception(sys.last_exc, limit=limit, file=file, chain=chain)'.""" |
no test coverage detected