Skip to content

Commit

Permalink
Handle keyerror if old node missing
Browse files Browse the repository at this point in the history
  • Loading branch information
jtcohen6 committed Dec 16, 2020
1 parent b025f20 commit 08e425b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/dbt/contracts/graph/manifest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 08e425b

Please sign in to comment.