Skip to content

Commit

Permalink
[socks] Fix error reporting (#11355)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yen Chi Hsuan committed Dec 3, 2016
1 parent a94e7f4 commit 8344296
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion youtube_dl/socks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand Down

0 comments on commit 8344296

Please sign in to comment.