Catch additional error
This commit is contained in:
1 parent
17499baf61
commit
6a20548269
1 file changed
+1
-1
@@ -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