Catch and ignore UnicodeDecodeError in wd_catalog

This commit is contained in:
Edward Betts 2020-06-30 13:09:03 +01:00
parent 52db7ac00f
commit dc4455bec5

View file

@ -153,12 +153,15 @@ def check_catalog(entity, catalog):
catalog.update(cat)
return
try:
html = get_catalog_url(catalog_url)
if html:
description = get_description_from_page(html)
if description:
catalog['description'] = description
return
except UnicodeDecodeError:
return
for property_id in sorted(catalog_ids):
if property_id == 'P350':