From 5040caf91c0df5e15bf208af48a16515ab90653a Mon Sep 17 00:00:00 2001 From: vabene1111 Date: Sat, 20 Dec 2025 18:32:16 +0100 Subject: [PATCH] fixed another mealie edge case --- cookbook/integration/mealie1.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbook/integration/mealie1.py b/cookbook/integration/mealie1.py index 5198d9ec0..4dab5bc81 100644 --- a/cookbook/integration/mealie1.py +++ b/cookbook/integration/mealie1.py @@ -197,7 +197,7 @@ class Mealie1(Integration): space=self.request.space, ) ingredients_relation.append(Step.ingredients.through(step_id=get_step_id(i, first_step_of_recipe_dict, step_id_dict,recipe_ingredient_ref_link_dict), ingredient_id=ingredient.pk)) - elif i['note'].strip(): + elif i['note'] and i['note'].strip(): amount, unit, food, note = ingredient_parser.parse(i['note'].strip()) f = ingredient_parser.get_food(food) u = ingredient_parser.get_unit(unit)