Shorthand for 'print_exception(sys.exception(), limit=limit, file=file, chain=chain)'.
(limit=None, file=None, chain=True)
| 206 | # -- |
| 207 | |
| 208 | def print_exc(limit=None, file=None, chain=True): |
| 209 | """Shorthand for 'print_exception(sys.exception(), limit=limit, file=file, chain=chain)'.""" |
| 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.""" |