mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-17 21:59:17 +00:00
[viceland] raise ExtractorError for errors other than HTTP 400
This commit is contained in:
parent
6103f59095
commit
e811bcf8f8
|
@ -70,6 +70,7 @@ def _real_extract(self, url):
|
||||||
if isinstance(e.cause, compat_HTTPError) and e.cause.code == 400:
|
if isinstance(e.cause, compat_HTTPError) and e.cause.code == 400:
|
||||||
error = json.loads(e.cause.read().decode())
|
error = json.loads(e.cause.read().decode())
|
||||||
raise ExtractorError('%s said: %s' % (self.IE_NAME, error['details']), expected=True)
|
raise ExtractorError('%s said: %s' % (self.IE_NAME, error['details']), expected=True)
|
||||||
|
raise
|
||||||
|
|
||||||
video_data = preplay['video']
|
video_data = preplay['video']
|
||||||
base = video_data['base']
|
base = video_data['base']
|
||||||
|
|
Loading…
Reference in a new issue