From 993c802047ace168e3738104e33941d7590b1530 Mon Sep 17 00:00:00 2001 From: Dmitry Date: Mon, 4 Sep 2017 23:44:08 -0700 Subject: [PATCH] Workflow graph: target metric with no root fix --- dvc/graph/workflow.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dvc/graph/workflow.py b/dvc/graph/workflow.py index f88c1a0d3..4d896d993 100644 --- a/dvc/graph/workflow.py +++ b/dvc/graph/workflow.py @@ -130,7 +130,8 @@ class Workflow(object): return if self._root_hash not in self._commits: - Logger.warn('Root commit cannot be found') + Logger.warn('Cannot derive target metrics deltas: root commit was not found') + return current_target_metric = None commit = self._commits[self._root_hash]