From: Jaime Marquínez Ferrándiz Date: Fri, 17 Apr 2015 17:24:30 +0000 (+0200) Subject: [soundcloud] Raise an error instead of calling 'report_error' X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=214e74bf6f6eee15cf85c9d5a4defce14b56d586;p=youtube-dl [soundcloud] Raise an error instead of calling 'report_error' --- diff --git a/youtube_dl/extractor/soundcloud.py b/youtube_dl/extractor/soundcloud.py index 7efc6aff1..183ff50f4 100644 --- a/youtube_dl/extractor/soundcloud.py +++ b/youtube_dl/extractor/soundcloud.py @@ -279,9 +279,8 @@ class SoundcloudSetIE(SoundcloudIE): info = self._download_json(resolv_url, full_title) if 'errors' in info: - for err in info['errors']: - self._downloader.report_error('unable to download video webpage: %s' % compat_str(err['error_message'])) - return + msgs = (compat_str(err['error_message']) for err in info['errors']) + raise ExtractorError('unable to download video webpage: %s' % ','.join(msgs)) return { '_type': 'playlist',