diff --git a/dvc/command/pipeline.py b/dvc/command/pipeline.py index c594eb6bef..f6b33e9b2f 100644 --- a/dvc/command/pipeline.py +++ b/dvc/command/pipeline.py @@ -90,10 +90,11 @@ def _show_dependencies_tree(self, target, commands, outs): 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]