Skip to content

Commit

Permalink
fix merge_dicts some more
Browse files Browse the repository at this point in the history
  • Loading branch information
Die4Ever committed Apr 22, 2024
1 parent 709d62d commit 8b8660f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def merge_dicts(base, priority):
merged = base.copy()
for p in priority:
if isinstance(priority[p], dict):
merged[p] = merge_dicts(base[p], priority[p])
merged[p] = merge_dicts(base.get(p, {}), priority[p])
else:
merged[p] = priority[p]
return merged
Expand Down

0 comments on commit 8b8660f

Please sign in to comment.