catch_and_exit

lsst.daf.butler.cli.utils.catch_and_exit(func: collections.abc.Callable) → collections.abc.Callable

Decorator which catches all exceptions, prints an exception traceback and signals click to exit.