2
0
Эх сурвалжийг харах

[socks] Fix error reporting (#11355)

Yen Chi Hsuan 9 жил өмнө
parent
commit
8344296619
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      youtube_dl/socks.py

+ 1 - 1
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)