mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 06:35:12 +00:00 
			
		
		
		
	Throw a better error if the protocol is invalid
This commit is contained in:
		| @@ -1304,6 +1304,8 @@ class GenericIE(InfoExtractor): | ||||
|             opener.add_handler(handler()) | ||||
|  | ||||
|         response = opener.open(HeadRequest(url)) | ||||
|         if response is None: | ||||
|             raise ExtractorError(u'Invalid URL protocol') | ||||
|         new_url = response.geturl() | ||||
|  | ||||
|         if url == new_url: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Philipp Hagemeister
					Philipp Hagemeister