Skip to content

Commit

Permalink
github: return None for NOASSERTION license
Browse files Browse the repository at this point in the history
  • Loading branch information
slint authored Dec 6, 2024
1 parent 8a65cfa commit 41e28e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion invenio_rdm_records/services/github/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 41e28e4

Please sign in to comment.