From 6a205482696eecdf5bd65c50e6c957c1e12f9219 Mon Sep 17 00:00:00 2001 From: Serene-Arc Date: Wed, 28 Apr 2021 10:00:48 +1000 Subject: [PATCH] Catch additional error --- bdfr/site_downloaders/gif_delivery_network.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bdfr/site_downloaders/gif_delivery_network.py b/bdfr/site_downloaders/gif_delivery_network.py index 6efbb6f..1127301 100644 --- a/bdfr/site_downloaders/gif_delivery_network.py +++ b/bdfr/site_downloaders/gif_delivery_network.py @@ -30,7 +30,7 @@ class GifDeliveryNetwork(BaseDownloader): try: content = json.loads(content.string) out = content['video']['contentUrl'] - except (json.JSONDecodeError, KeyError, TypeError): + except (json.JSONDecodeError, KeyError, TypeError, AttributeError): raise SiteDownloaderError('Could not find source link') return out