[socks] Fix error reporting (#11355)

pull/8/head
Yen Chi Hsuan 2016-12-03 21:53:41 +08:00
rodzic a94e7f4a0c
commit 8344296619
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7F902A182457CA23
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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)