This is a shorthand for 'print_exception(sys.last_type, sys.last_value, sys.last_traceback, limit, file)'.
(limit=None, file=None, chain=True)
| 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, |
| 188 | sys.last_value, sys.last_traceback, limit, file)'.""" |
| 189 | if not hasattr(sys, "last_type"): |
| 190 | raise ValueError("no last exception") |
| 191 | print_exception(sys.last_type, sys.last_value, sys.last_traceback, |
| 192 | limit, file, chain) |
| 193 | |
| 194 | # |
| 195 | # Printing and Extracting Stacks. |
nothing calls this directly
no test coverage detected