mirror of
				https://gitlab.com/ytdl-org/youtube-dl.git
				synced 2025-11-03 18:37:07 -05:00 
			
		
		
		
	[extractor/common] Use more generic URLError in _is_valid_url
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user