Make ExtractorError usable for other causes
This commit is contained in:
@@ -117,7 +117,7 @@ class InfoExtractor(object):
|
||||
except (compat_urllib_error.URLError, compat_http_client.HTTPException, socket.error) as err:
|
||||
if errnote is None:
|
||||
errnote = u'Unable to download webpage'
|
||||
raise ExtractorError(u'%s: %s' % (errnote, compat_str(err)))
|
||||
raise ExtractorError(u'%s: %s' % (errnote, compat_str(err)), sys.exc_info()[2])
|
||||
|
||||
|
||||
class YoutubeIE(InfoExtractor):
|
||||
|
Reference in New Issue
Block a user