fix: grocery_links — guard against empty ingredient names in build_links

This commit is contained in:
pyr0ball 2026-03-31 12:44:58 -07:00
parent e8fb57f6a2
commit 3943a8c99d

View file

@ -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: