mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-21 20:46:36 -05:00
[soundcloud] Raise an error instead of calling 'report_error'
This commit is contained in:
parent
c5826a491b
commit
214e74bf6f
1 changed files with 2 additions and 3 deletions
|
@ -279,9 +279,8 @@ def _real_extract(self, url):
|
||||||
info = self._download_json(resolv_url, full_title)
|
info = self._download_json(resolv_url, full_title)
|
||||||
|
|
||||||
if 'errors' in info:
|
if 'errors' in info:
|
||||||
for err in info['errors']:
|
msgs = (compat_str(err['error_message']) for err in info['errors'])
|
||||||
self._downloader.report_error('unable to download video webpage: %s' % compat_str(err['error_message']))
|
raise ExtractorError('unable to download video webpage: %s' % ','.join(msgs))
|
||||||
return
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
'_type': 'playlist',
|
'_type': 'playlist',
|
||||||
|
|
Loading…
Reference in a new issue