Catch and ignore ConnectionError for catalog page.

This commit is contained in:
Edward Betts 2019-10-07 10:39:15 +01:00
parent 9688331190
commit 807353303e

2
app.py
View file

@ -573,7 +573,7 @@ def item_page(item_id):
detail = wd_catalog.lookup(property_id, value)
try:
html = get_catalog_page(property_id, value)
except requests.exceptions.SSLError:
except (requests.exceptions.ConnectionError, requests.exceptions.SSLError):
continue # ignore this error
description = get_description_from_page(html)
if not description: