Replace ValueError with DvcException

This commit is contained in:
Dmitrii Pukhov
2019-03-26 22:39:41 +09:00
parent 5346fc44bc
commit 263dee8650
+2 -1
View File
@@ -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]