mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-28 07:36:52 +01:00
[extractor/common] Use more generic URLError in _is_valid_url
This commit is contained in:
parent
50f01302d3
commit
943a1e24b8
@ -842,7 +842,7 @@ def _is_valid_url(self, url, video_id, item='video'):
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user