From 6dfe737ec5032fa8d22afb107fd4e85c5cca1fd2 Mon Sep 17 00:00:00 2001 From: smilerz Date: Mon, 3 May 2021 08:40:09 -0500 Subject: [PATCH] minor bug fix in bookmarklet --- cookbook/helper/scrapers/scrapers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbook/helper/scrapers/scrapers.py b/cookbook/helper/scrapers/scrapers.py index ff052f2c1..4c41474e5 100644 --- a/cookbook/helper/scrapers/scrapers.py +++ b/cookbook/helper/scrapers/scrapers.py @@ -37,7 +37,7 @@ def text_scraper(text, url=None): self.recipe = None try: self.schema = SchemaOrg(page_data) - except JSONDecodeError: + except (JSONDecodeError, AttributeError): pass return TextScraper(text, url)