fix: grocery_links — guard against empty ingredient names in build_links
This commit is contained in:
parent
e8fb57f6a2
commit
3943a8c99d
1 changed files with 2 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue