Catch additional error
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user