Skip to content

Commit

Permalink
curation: rules: funder failsafe
Browse files Browse the repository at this point in the history
Co-authored-by: Alex Ioannidis <a.ioannidis.pan@gmail.com>
  • Loading branch information
yashlamba and slint authored Dec 6, 2024
1 parent a2a1ee6 commit 4b11adb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion site/zenodo_rdm/curation/rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def award_acronym_in_description(record):

funding = record.metadata.get("funding", [])
for f in funding:
if f["funder"]["id"] == "00k4n6c32":
if f["funder"].get("id") == "00k4n6c32":
if award_id := f.get("award", {}).get("id"):
award = award_service.record_cls.pid.resolve(award_id)
if award.get("acronym") and (
Expand Down

0 comments on commit 4b11adb

Please sign in to comment.