From c0a06d2cebeeaa9ab98e14870fad9d3adcd64604 Mon Sep 17 00:00:00 2001 From: Ivan Shcheklein Date: Sun, 23 Jun 2019 13:58:42 -0700 Subject: [PATCH] pipeline show command: ignore stage if command is not defined --- dvc/command/pipeline.py | 2 ++ 1 file changed, 2 insertions(+) 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: