youtube-dl

Another place where youtube-dl lives on
git clone git://git.oshgnacknak.de/youtube-dl.git
Log | Files | Refs | README | LICENSE

commit 83442966194640d9bc00e7f3086aa5e8b25c4ae3
parent a94e7f4a0ca333aabf08adb1c329b4b5b8a5d897
Author: Yen Chi Hsuan <yan12125@gmail.com>
Date:   Sat,  3 Dec 2016 21:53:41 +0800

[socks] Fix error reporting (#11355)

Diffstat:
Myoutube_dl/socks.py | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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)