Merge pull request #2367 from spamdaemon/patch-1
Fixed a syntax error with python 3.6
This commit is contained in:
commit
51b6fa0e46
|
@ -534,7 +534,7 @@ class SocketPipe:
|
||||||
raise timeout
|
raise timeout
|
||||||
except ssl.SSLError:
|
except ssl.SSLError:
|
||||||
raise timeout
|
raise timeout
|
||||||
except socket.error, err:
|
except socket.error as err:
|
||||||
if err.errno == 60:
|
if err.errno == 60:
|
||||||
raise timeout
|
raise timeout
|
||||||
elif err.errno in [11, 35, 10035]:
|
elif err.errno in [11, 35, 10035]:
|
||||||
|
|
Loading…
Reference in New Issue