Browse Source

[socks] Fix error reporting (#11355)

totalwebcasting
Yen Chi Hsuan 8 years ago
parent
commit
8344296619
No known key found for this signature in database GPG Key ID: 7F902A182457CA23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      youtube_dl/socks.py

+ 1
- 1
youtube_dl/socks.py View File

@ -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)


Loading…
Cancel
Save