Skip to content

Commit b4e84e4

Browse files
authored
fix: add check for key (#1408)
1 parent fa2e107 commit b4e84e4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sqlmesh/migrations/v0023_fix_added_models_with_forward_only_parents.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ def migrate(state_sync: t.Any) -> None:
3636
snapshots_to_delete = set()
3737

3838
for snapshot_id in dag:
39+
if snapshot_id not in snapshot_mapping:
40+
continue
3941
parsed_snapshot = snapshot_mapping[snapshot_id]
4042
is_breaking = parsed_snapshot.get("change_category") == 1
4143
has_previous_versions = bool(parsed_snapshot.get("previous_versions", []))

0 commit comments

Comments
 (0)