From 41e28e4c02d8d9c0b29285132a6828feac68e5c2 Mon Sep 17 00:00:00 2001 From: Alex Ioannidis Date: Fri, 6 Dec 2024 11:00:31 +0100 Subject: [PATCH] github: return None for `NOASSERTION` license --- invenio_rdm_records/services/github/metadata.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/invenio_rdm_records/services/github/metadata.py b/invenio_rdm_records/services/github/metadata.py index b6e0d438a..8bba7d6d7 100644 --- a/invenio_rdm_records/services/github/metadata.py +++ b/invenio_rdm_records/services/github/metadata.py @@ -87,7 +87,7 @@ def repo_license(self): spdx_id = repo_license_obj.get("spdx_id") # For 'other' type of licenses, Github sets the spdx_id to NOASSERTION if spdx_id == "NOASSERTION": - spdx_id = "other" + return None return spdx_id @property