Skip to content

Commit

Permalink
Merge pull request PGScatalog#380 from fyvon/improve/error_for_duplic…
Browse files Browse the repository at this point in the history
…ated_dois

Specific error for curation tracker duplicate DOIs during release
  • Loading branch information
fyvon authored Jul 30, 2024
2 parents cee07fb + 47bd874 commit fcdbae0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions release/scripts/run_release_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,8 @@ def update_curation_tracker():
curation_pub.save()
except CurationPublicationAnnotation.DoesNotExist:
print(f"Can't find study in Curation Tracker to add the new PGP ID '{pgp_id}'")
except CurationPublicationAnnotation.MultipleObjectsReturned:
print(f"DOI '{publication.doi}' is duplicated in the Curation Tracker. It won't be updated ({pgp_id}).")

# Old released entries which are still missing the PubMed ID
# Use the PGS Catalog data to update the study information in the Curation Tracker
Expand Down

0 comments on commit fcdbae0

Please sign in to comment.