diff --git a/apps/ingest/services.py b/apps/ingest/services.py index f7f50190..a5660c65 100644 --- a/apps/ingest/services.py +++ b/apps/ingest/services.py @@ -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, )