From 52a7f94fd0eae5bcf4e451867cf6bf190b56539b Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Tue, 30 Jun 2020 09:07:13 +0100 Subject: [PATCH] Bug fix --- depicts/wd_catalog.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/depicts/wd_catalog.py b/depicts/wd_catalog.py index 4ece4ea..5b2fe7b 100644 --- a/depicts/wd_catalog.py +++ b/depicts/wd_catalog.py @@ -171,6 +171,8 @@ def check_catalog(entity, catalog): html = get_catalog_page(property_id, value) except (requests.exceptions.ConnectionError, requests.exceptions.SSLError): continue # ignore this error + if not html: + continue description = get_description_from_page(html) if not description: continue