From 117459bb8fd92a60a96e61f07b0206dc9dde4da4 Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Tue, 30 Jun 2020 14:00:59 +0100 Subject: [PATCH] Ignore requests.exceptions.TooManyRedirects for catalog page --- depicts/wd_catalog.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/depicts/wd_catalog.py b/depicts/wd_catalog.py index 87ccd74..366b4d7 100644 --- a/depicts/wd_catalog.py +++ b/depicts/wd_catalog.py @@ -206,7 +206,8 @@ def get_catalog_from_artwork(entity): check_catalog(entity, catalog) except (requests.exceptions.ReadTimeout, requests.exceptions.ConnectTimeout, - requests.exceptions.ConnectionError): + requests.exceptions.ConnectionError, + requests.exceptions.TooManyRedirects): pass return catalog