From 74ee8f5bc638c2d5065e1930f4e827c20646bcca Mon Sep 17 00:00:00 2001 From: James McKinney <26463+jpmckinney@users.noreply.github.com> Date: Tue, 24 Sep 2024 11:35:13 -0400 Subject: [PATCH] fix: Make release id optional --- process/management/commands/file_worker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/process/management/commands/file_worker.py b/process/management/commands/file_worker.py index 1de26cde..ad26f966 100644 --- a/process/management/commands/file_worker.py +++ b/process/management/commands/file_worker.py @@ -288,7 +288,7 @@ def _store_data(collection_file, package, releases_or_records, data_type, *, upg package_data=get_or_create(PackageData, package), data=data, ocid=release_or_record["ocid"], - release_id=release_or_record["id"], + release_id=release_or_record.get("id", ""), ).save() case Format.compiled_release: CompiledRelease(