Catch additional error

This commit is contained in:
Serene-Arc
2021-04-28 10:00:48 +10:00
parent 17499baf61
commit 6a20548269

View File

@@ -30,7 +30,7 @@ class GifDeliveryNetwork(BaseDownloader):
try: try:
content = json.loads(content.string) content = json.loads(content.string)
out = content['video']['contentUrl'] out = content['video']['contentUrl']
except (json.JSONDecodeError, KeyError, TypeError): except (json.JSONDecodeError, KeyError, TypeError, AttributeError):
raise SiteDownloaderError('Could not find source link') raise SiteDownloaderError('Could not find source link')
return out return out