kitchenowl
kitchenowl copied to clipboard
fix: handle case when parsed.name is single item
Resolves #719 If you can reproduce the problem, we can pass the problem on to the maintainer of IngredientParser, that only one list will be returned in the future.
I removed your length-check because an empty list is evaluated as False, so if parsed.name is only True if the list is not empty. With the below nlpAmountToDescription i hadn't a problem yet