Skip to content

Commit

Permalink
fix None has no parent
Browse files Browse the repository at this point in the history
  • Loading branch information
FynnBe committed Apr 22, 2024
1 parent 95e7eb1 commit 7b7e73d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bioimageio/spec/model/v0_4.py
Original file line number Diff line number Diff line change
Expand Up @@ -893,7 +893,8 @@ def package_weights(

# remove links to parent entry (otherwise we cannot remove the parent)
for _, w in value:
w.parent = None
if w is not None:
w.parent = None

for field_name in value.model_fields:
if field_name != wf:
Expand Down

0 comments on commit 7b7e73d

Please sign in to comment.