From 807353303e5a9c40673e4bea1180d327fcdba6b5 Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Mon, 7 Oct 2019 10:39:15 +0100 Subject: [PATCH] Catch and ignore ConnectionError for catalog page. --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index ec04901..7f80622 100755 --- a/app.py +++ b/app.py @@ -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: