commit 943a1e24b896a64c869bbd302f32fe5bd2afec96
parent 50f01302d347738647262f9442bc4f5d06f013c6
Author: Sergey M․ <dstftw@gmail.com>
Date: Sat, 24 Oct 2015 16:25:04 +0600
[extractor/common] Use more generic URLError in _is_valid_url
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.py
@@ -842,7 +842,7 @@ class InfoExtractor(object):
self._request_webpage(url, video_id, 'Checking %s URL' % item)
return True
except ExtractorError as e:
- if isinstance(e.cause, compat_HTTPError):
+ if isinstance(e.cause, compat_urllib_error.URLError):
self.to_screen(
'%s: %s URL is invalid, skipping' % (video_id, item))
return False