diff --git a/dvc/command/pipeline.py b/dvc/command/pipeline.py index 99525fd9e..70b8bd79d 100644 --- a/dvc/command/pipeline.py +++ b/dvc/command/pipeline.py @@ -29,6 +29,8 @@ class CmdPipelineShow(CmdBase): for n in nodes: if commands: + if stages[n].cmd is None: + continue logger.info(stages[n].cmd) elif outs: for out in stages[n].outs: