TranslatorSRI / NodeNormalization

Service that produces Translator compliant nodes given a curie
MIT License
9 stars 6 forks source link

Prevent errors in normalization from causing an entire batch to fail #222

Closed gaurav closed 6 months ago

gaurav commented 8 months ago

Right now, an error in ‎get_normalized_nodes‎() causes the entire batch to fail, as the exception is caught outside of the individual identifier loops.

https://github.com/TranslatorSRI/NodeNormalization/blob/7363d171b3a0f4735b63546692c845e8d047da32/node_normalizer/normalizer.py#L571-L573

It would be great if we could rewrite this so that only identifiers causing exceptions result in errors, and other errors are returned normally.