mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-08-05 05:25:26 +02:00
fix:Error when scraper returns None (#1175)
This commit is contained in:
parent
2613420cd1
commit
f1e84a7769
1 changed files with 3 additions and 3 deletions
|
@ -28,9 +28,9 @@ class RecipeScraper:
|
|||
|
||||
for scraper_type in self.scrapers:
|
||||
scraper = scraper_type(url)
|
||||
recipe, extras = scraper.parse()
|
||||
result = scraper.parse()
|
||||
|
||||
if recipe is not None:
|
||||
return recipe, extras
|
||||
if result is not None:
|
||||
return result
|
||||
|
||||
return None, None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue