aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-10-24 16:25:04 +0600
committerSergey M․ <dstftw@gmail.com>2015-10-24 16:25:04 +0600
commit943a1e24b896a64c869bbd302f32fe5bd2afec96 (patch)
tree20e26de35c9b57ab1e854e91f553929c1a500475
parent50f01302d347738647262f9442bc4f5d06f013c6 (diff)
[extractor/common] Use more generic URLError in _is_valid_url
-rw-r--r--youtube_dl/extractor/common.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.py
index 6169fbbeb..720033ddf 100644
--- 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