Skip to content

Commit

Permalink
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/species/cache.py
Original file line number Diff line number Diff line change
@@ -109,7 +109,7 @@ def add_taxon_by_tvk(session: Session, tvk: str) -> Taxon:
taxa = driver.parse_response_taxa(response)

if len(taxa) == 0:
raise ValueError("TVK not recognised.")
raise ValueError(f"TVK {tvk} not recognised.")
else:
taxon = taxa[0]
session.add(taxon)

0 comments on commit a4cb80d

Please sign in to comment.