diff --git a/cookbook/helper/recipe_url_import.py b/cookbook/helper/recipe_url_import.py index cd9e33a7..6cdf0107 100644 --- a/cookbook/helper/recipe_url_import.py +++ b/cookbook/helper/recipe_url_import.py @@ -13,7 +13,10 @@ def get_from_scraper(scrape, space): # converting the scrape_me object to the existing json format based on ld+json recipe_json = {} - recipe_json['name'] = scrape.title() + try: + recipe_json['name'] = scrape.title() + except TypeError: + recipe_json['name'] = '' try: description = scrape.schema.data.get("description") or ''