diff --git a/openhexa/cli/cli.py b/openhexa/cli/cli.py index a0b2191..be6ab9b 100644 --- a/openhexa/cli/cli.py +++ b/openhexa/cli/cli.py @@ -328,7 +328,7 @@ def pipelines_delete(code: str): sys.exit(1) else: pipeline = get_pipeline(user_config, code) - if get_pipeline(user_config, code) is None: + if pipeline is None: click.echo( f"Pipeline {click.style(code, bold=True)} does not exist in workspace {click.style(workspace, bold=True)}" )