From 263dee8650aca16315a3713fb8e83919fecffa40 Mon Sep 17 00:00:00 2001 From: Dmitrii Pukhov Date: Tue, 26 Mar 2019 22:39:41 +0900 Subject: [PATCH] Replace ValueError with DvcException --- dvc/command/pipeline.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dvc/command/pipeline.py b/dvc/command/pipeline.py index c594eb6be..f6b33e9b2 100644 --- a/dvc/command/pipeline.py +++ b/dvc/command/pipeline.py @@ -90,10 +90,11 @@ class CmdPipelineShow(CmdBase): if not nodes: return if not is_tree: - raise ValueError( + raise DvcException( "DAG is not a tree, can not print it in tree-structure way, " "please use --ascii instead" ) + tree = Tree() tree.create_node(target, target) # Root node observe_list = [target]