Skip to content

Commit

Permalink
💥 Avoid KeyError when derivedSymbolData is omitted when detaching…
Browse files Browse the repository at this point in the history
… instances (#127)

💥 Avoid `KeyError` when `derivedSymbolData` is omitted
  • Loading branch information
tmdvs authored Jul 16, 2024
1 parent 9b58f52 commit 15cef04
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/converter/instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,9 @@ def detach_symbol(fig_instance, all_overrides):

# Apply overrides to children
for c in detached_children:
apply_overrides(c, fig_instance["guid"], all_overrides, fig_instance["derivedSymbolData"])
apply_overrides(
c, fig_instance["guid"], all_overrides, fig_instance.get("derivedSymbolData", [])
)

fig_instance["children"] = detached_children
fig_instance["type"] = "FRAME"
Expand Down

0 comments on commit 15cef04

Please sign in to comment.