Skip to content

Commit

Permalink
Add check for undefined dict entries in metadata update
Browse files Browse the repository at this point in the history
  • Loading branch information
blms committed Jun 20, 2024
1 parent 200f133 commit 3eaf18e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/ingest/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def set_metadata(manifest, metadata):
(
idx
for (idx, d) in enumerate(manifest.metadata)
if d["label"] == key
if "label" in d and d["label"] == key
),
None,
)
Expand Down

0 comments on commit 3eaf18e

Please sign in to comment.