catch attibute error when scrape missing schema

This commit is contained in:
smilerz
2021-04-15 18:39:44 -05:00
parent d75e39fbcd
commit ca84da68c4
2 changed files with 1 additions and 3 deletions

View File

@ -16,7 +16,7 @@ def get_from_scraper(scrape, space):
recipe_json = {}
try:
recipe_json['name'] = parse_name(scrape.title() or scrape.schema.data.get('name') or '')
except TypeError:
except (TypeError, AttributeError):
recipe_json['name'] = ''
try: