(*a, **kw)
| 26 | def catch_errors(f): |
| 27 | @functools.wraps(f) |
| 28 | def inner(*a, **kw): |
| 29 | try: |
| 30 | f(*a, **kw) |
| 31 | except BaseException: |
| 32 | from .utils import handle_cli_error |
| 33 | handle_cli_error() |
| 34 | sys.exit(1) |
| 35 | |
| 36 | return inner |
| 37 |
nothing calls this directly
no test coverage detected