diff options
author | Sergey M․ <dstftw@gmail.com> | 2015-10-24 16:25:04 +0600 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2015-10-24 16:25:04 +0600 |
commit | 943a1e24b896a64c869bbd302f32fe5bd2afec96 (patch) | |
tree | 20e26de35c9b57ab1e854e91f553929c1a500475 /youtube_dl/extractor | |
parent | 50f01302d347738647262f9442bc4f5d06f013c6 (diff) |
[extractor/common] Use more generic URLError in _is_valid_url
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r-- | youtube_dl/extractor/common.py | 2 |
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 |