From 3943a8c99d2e4f36636b1b77bd397110d4602663 Mon Sep 17 00:00:00 2001 From: pyr0ball Date: Tue, 31 Mar 2026 12:44:58 -0700 Subject: [PATCH] =?UTF-8?q?fix:=20grocery=5Flinks=20=E2=80=94=20guard=20ag?= =?UTF-8?q?ainst=20empty=20ingredient=20names=20in=20build=5Flinks?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/services/recipe/grocery_links.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/services/recipe/grocery_links.py b/app/services/recipe/grocery_links.py index d289325..c974c60 100644 --- a/app/services/recipe/grocery_links.py +++ b/app/services/recipe/grocery_links.py @@ -50,6 +50,8 @@ class GroceryLinkBuilder: Free tier: URL construction only. Paid+: would call live product search APIs (stubbed). """ + if not ingredient.strip(): + return [] links: list[GroceryLink] = [] if self._amazon_tag: