From: Sergey M․ Date: Sat, 24 Oct 2015 10:25:04 +0000 (+0600) Subject: [extractor/common] Use more generic URLError in _is_valid_url X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=943a1e24b896a64c869bbd302f32fe5bd2afec96;p=youtube-dl [extractor/common] Use more generic URLError in _is_valid_url --- 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