Catch and ignore ConnectionError for catalog page.
This commit is contained in:
parent
9688331190
commit
807353303e
2
app.py
2
app.py
|
@ -573,7 +573,7 @@ def item_page(item_id):
|
||||||
detail = wd_catalog.lookup(property_id, value)
|
detail = wd_catalog.lookup(property_id, value)
|
||||||
try:
|
try:
|
||||||
html = get_catalog_page(property_id, value)
|
html = get_catalog_page(property_id, value)
|
||||||
except requests.exceptions.SSLError:
|
except (requests.exceptions.ConnectionError, requests.exceptions.SSLError):
|
||||||
continue # ignore this error
|
continue # ignore this error
|
||||||
description = get_description_from_page(html)
|
description = get_description_from_page(html)
|
||||||
if not description:
|
if not description:
|
||||||
|
|
Loading…
Reference in a new issue