mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-01 04:10:06 -05:00
minor bug fix in bookmarklet
This commit is contained in:
@@ -37,7 +37,7 @@ def text_scraper(text, url=None):
|
|||||||
self.recipe = None
|
self.recipe = None
|
||||||
try:
|
try:
|
||||||
self.schema = SchemaOrg(page_data)
|
self.schema = SchemaOrg(page_data)
|
||||||
except JSONDecodeError:
|
except (JSONDecodeError, AttributeError):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
return TextScraper(text, url)
|
return TextScraper(text, url)
|
||||||
|
|||||||
Reference in New Issue
Block a user