Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add error handling if unit is not in our string_to_mass_unit map #47

Open
dcolli23 opened this issue Dec 12, 2020 · 0 comments
Open

Add error handling if unit is not in our string_to_mass_unit map #47

dcolli23 opened this issue Dec 12, 2020 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@dcolli23
Copy link
Owner

Description

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.

@dcolli23 dcolli23 added the bug Something isn't working label Dec 12, 2020
@dcolli23 dcolli23 self-assigned this Dec 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant