Like print_exc() but return a string.
(limit=None, chain=True)
| 180 | print_exception(*sys.exc_info(), limit=limit, file=file, chain=chain) |
| 181 | |
| 182 | def 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 | |
| 186 | def print_last(limit=None, file=None, chain=True): |
| 187 | """This is a shorthand for 'print_exception(sys.last_type, |
no test coverage detected