Skip to content

Commit

Permalink
Raise error if we ever have multiple loculus accession in ingest
Browse files Browse the repository at this point in the history
  • Loading branch information
anna-parker committed Sep 19, 2024
1 parent 767221a commit 44c9f19
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ingest/scripts/call_loculus.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,14 +358,12 @@ def get_submitted(config: Config):
"jointAccession": joint_accession,
}
elif loculus_accession != submitted_dict[insdc_accession]["loculus_accession"]:
# For now to be forgiving, just move on, but log the error
# This should not happen in production
message = (
f"INSDC accession {insdc_accession} has multiple loculus accessions: "
f"{loculus_accession} and {submitted_dict[insdc_accession]['loculus_accession']}"
)
logger.error(message)
continue
raise ValueError(message)

submitted_dict[insdc_accession]["versions"].append(
{
Expand Down

0 comments on commit 44c9f19

Please sign in to comment.