From 08e425bcf62b0b4b4cbb728a888435fa1d4b70e6 Mon Sep 17 00:00:00 2001 From: Jeremy Cohen Date: Wed, 16 Dec 2020 00:24:00 -0500 Subject: [PATCH] Handle keyerror if old node missing --- core/dbt/contracts/graph/manifest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/dbt/contracts/graph/manifest.py b/core/dbt/contracts/graph/manifest.py index 48f68bba150..e3a750e7a66 100644 --- a/core/dbt/contracts/graph/manifest.py +++ b/core/dbt/contracts/graph/manifest.py @@ -899,8 +899,8 @@ def merge_from_artifact( refables = set(NodeType.refable()) merged = set() for unique_id, node in other.nodes.items(): - current = self.nodes[unique_id] - if ( + current = self.nodes.get(unique_id) + if current and ( node.resource_type in refables and not node.is_ephemeral and unique_id not in selected and