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: