diff --git a/release/scripts/run_release_script.py b/release/scripts/run_release_script.py index 4b11a7f2..d4fd3b1f 100644 --- a/release/scripts/run_release_script.py +++ b/release/scripts/run_release_script.py @@ -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