1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-06-28 14:49:35 +00:00

[viceland] raise ExtractorError for errors other than HTTP 400

This commit is contained in:
Remita Amine 2016-08-14 20:12:53 +01:00
parent 6103f59095
commit e811bcf8f8

View file

@ -70,6 +70,7 @@ class VicelandIE(AdobePass):
if isinstance(e.cause, compat_HTTPError) and e.cause.code == 400:
error = json.loads(e.cause.read().decode())
raise ExtractorError('%s said: %s' % (self.IE_NAME, error['details']), expected=True)
raise
video_data = preplay['video']
base = video_data['base']