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