Shorthand for 'print_exception(sys.exception(), limit=limit, file=file, chain=chain)'.
(limit=None, file=None, chain=True, **kwargs)
| 216 | # -- |
| 217 | |
| 218 | def print_exc(limit=None, file=None, chain=True, **kwargs): |
| 219 | """Shorthand for 'print_exception(sys.exception(), limit=limit, file=file, chain=chain)'.""" |
| 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.""" |