mirror of
				https://github.com/ytdl-org/youtube-dl.git
				synced 2025-10-29 09:26:20 -07:00 
			
		
		
		
	[socks] Fix error reporting (#11355)
This commit is contained in:
		| @@ -60,7 +60,7 @@ class ProxyError(IOError): | |||||||
|  |  | ||||||
|     def __init__(self, code=None, msg=None): |     def __init__(self, code=None, msg=None): | ||||||
|         if code is not None and msg is None: |         if code is not None and msg is None: | ||||||
|             msg = self.CODES.get(code) and 'unknown error' |             msg = self.CODES.get(code) or 'unknown error' | ||||||
|         super(ProxyError, self).__init__(code, msg) |         super(ProxyError, self).__init__(code, msg) | ||||||
|  |  | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user