mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-08 15:28:26 +01:00
Replace ValueError with DvcException
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user