projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[socks] Fix error reporting (#11355)
[youtube-dl]
/
youtube_dl
/
socks.py
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)