Skip to content

Commit

Permalink
stop using cli_handle_exception
Browse files Browse the repository at this point in the history
  • Loading branch information
n8pease committed Dec 7, 2020
1 parent 2801516 commit fc14763
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions python/lsst/ctrl/mpexec/cli/cmd/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@
from lsst.daf.butler.cli.opt import (config_file_option,
config_option,
options_file_option)
from lsst.daf.butler.cli.utils import (cli_handle_exception,
MWCtxObj,
from lsst.daf.butler.cli.utils import (MWCtxObj,
option_section,
unwrap)
import lsst.obs.base.cli.opt as obsBaseOpts
Expand Down Expand Up @@ -62,7 +61,7 @@ def _doBuild(ctx, **kwargs):
obsBaseOpts.instrument_option.name()):
kwargs.pop(pipelineAction)
kwargs['pipeline_actions'] = makePipelineActions(MWCtxObj.getFrom(ctx).args)
return cli_handle_exception(script.build, **kwargs)
return script.build(**kwargs)


@click.command(cls=PipetaskCommand, epilog=epilog, short_help="Build pipeline definition.")
Expand Down Expand Up @@ -91,7 +90,7 @@ def qgraph(ctx, **kwargs):
"""Build and optionally save quantum graph.
"""
pipeline = _doBuild(ctx, **kwargs)
cli_handle_exception(script.qgraph, pipelineObj=pipeline, **kwargs)
script.qgraph(pipelineObj=pipeline, **kwargs)


@click.command(cls=PipetaskCommand, epilog=epilog)
Expand All @@ -100,5 +99,5 @@ def run(ctx, **kwargs):
"""Build and execute pipeline and quantum graph.
"""
pipeline = _doBuild(ctx, **kwargs)
qgraph = cli_handle_exception(script.qgraph, pipelineObj=pipeline, **kwargs)
cli_handle_exception(script.run, qgraphObj=qgraph, **kwargs)
qgraph = script.qgraph(pipelineObj=pipeline, **kwargs)
script.run(qgraphObj=qgraph, **kwargs)

0 comments on commit fc14763

Please sign in to comment.