Skip to content

Commit

Permalink
Update error message on DOI exists
Browse files Browse the repository at this point in the history
  • Loading branch information
yuanzhou authored Oct 7, 2024
1 parent 31786c3 commit be88712
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/schema/schema_validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def validate_if_revision_is_unique(property_key, normalized_entity_type, request
def halt_update_if_DOI_exists(property_key, normalized_entity_type, request, existing_data_dict, new_data_dict):
if 'doi_url' in existing_data_dict or 'registered_doi' in existing_data_dict:
raise ValueError(f"Unable to modify existing {existing_data_dict['entity_type']}"
f" {existing_data_dict['uuid']} due DOI.")
f" {existing_data_dict['uuid']} due to DOI already exists.")

"""
Do not allow a Collection to be created or updated with DOI information if it does not meet all the
Expand Down

0 comments on commit be88712

Please sign in to comment.