py3 support errors

This commit is contained in:
gitadmin committed 2017-12-18 09:07:35 +03:00
1 parent d218d92d2f
commit a3242f2749
1 file changed
+1 -1
+1 -1
View File
@@ -281,7 +281,7 @@ class NetworkedTests(unittest.TestCase):
count += 1
s.do_handshake()
break
except ssl.SSLError, err:
except ssl.SSLError as err:
if err.args[0] == ssl.SSL_ERROR_WANT_READ:
while True:
to = s.get_timeout()