From db0eda0abf1762757050af46c19b862f573e6d54 Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Tue, 22 Oct 2019 22:21:25 +0100 Subject: [PATCH] Catch and ignore more catalog exceptions --- depicts/wd_catalog.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/depicts/wd_catalog.py b/depicts/wd_catalog.py index 1e2dbc4..fea312f 100644 --- a/depicts/wd_catalog.py +++ b/depicts/wd_catalog.py @@ -192,7 +192,9 @@ def get_catalog_from_painting(entity): try: check_catalog(entity, catalog) - except requests.exceptions.ReadTimeout: + except (requests.exceptions.ReadTimeout, + requests.exceptions.ConnectTimeout, + requests.exceptions.ConnectionError): pass return catalog