In the Nutrient class, we go from the JSON result string to a uniTypes type through the string_to_mass_unit map. We need to add some error handling if the unit that is in the JSON file is not in our map.
We could simply enough just skip over this nutrient. That's likely what I'll do for the time being.
Description
In the
Nutrient
class, we go from the JSON result string to auniTypes
type through thestring_to_mass_unit
map. We need to add some error handling if the unit that is in the JSON file is not in our map.We could simply enough just skip over this nutrient. That's likely what I'll do for the time being.