Skip to content

Commit

Permalink
warn, but skip over synonyms to unknown IDs
Browse files Browse the repository at this point in the history
  • Loading branch information
mtholder committed Jul 10, 2024
1 parent 05e69f3 commit 8907e6d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions otc/taxonomy/taxonomy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -936,6 +936,8 @@ void RichTaxonomy::read_ott_synonyms_stream(std::istream & synonyms_file) {
if (!Taxonomy::tolerate_synonyms_to_unknown_id) {
throw;
}
LOG(WARNING) << "skipping synonym \"" << name << "\" to unknown ID " << ott_id;
continue;
}
if (primary == nullptr) {
num_syn_skipped++;
Expand Down

0 comments on commit 8907e6d

Please sign in to comment.