mirror of
https://github.com/l1ving/youtube-dl
synced 2024-11-20 20:32:57 +08:00
[socks] Fix error reporting (#11355)
This commit is contained in:
parent
a94e7f4a0c
commit
8344296619
@ -60,7 +60,7 @@ class ProxyError(IOError):
|
||||
|
||||
def __init__(self, code=None, msg=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)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user