projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a94e7f4
)
[socks] Fix error reporting (#11355)
author
Yen Chi Hsuan
<yan12125@gmail.com>
Sat, 3 Dec 2016 13:53:41 +0000
(21:53 +0800)
committer
Yen Chi Hsuan
<yan12125@gmail.com>
Sat, 3 Dec 2016 13:53:41 +0000
(21:53 +0800)
youtube_dl/socks.py
patch
|
blob
|
history
diff --git
a/youtube_dl/socks.py
b/youtube_dl/socks.py
index 63d19b3a5214221afa71a6d43bde36a39c13cd4b..fece280626606453f378d44a533bb167e656a30f 100644
(file)
--- a/
youtube_dl/socks.py
+++ b/
youtube_dl/socks.py
@@
-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)