Skip to content

Commit

Permalink
Replace ValueError with DvcException
Browse files Browse the repository at this point in the history
  • Loading branch information
puhoshville committed Mar 26, 2019
1 parent 5346fc4 commit 263dee8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dvc/command/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 263dee8

Please sign in to comment.