You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for reporting this, I'm happy with the solution you propose, and I'll look into implementing it.
Do you happen to have at hand such a recipe that doesn't contain recipeCategory?
Steps to Reproduce
recipeCategory
informationExpected Behavior
The recipe should be added to the database without a category.
Current Behavior
An exception is raised when attempting to comma-separate the category value (which is a Python
None
value).gourmand/src/gourmand/backends/db.py
Lines 1219 to 1220 in 139ca0b
Possible Solution
Replace
'category' in dic
condition withdic.get('category') is not None
(and add relevant test coverage).Environment
pytest
tests in a Python virtualenv)The text was updated successfully, but these errors were encountered: