1
0

python3 updates

This commit is contained in:
ThomasV
2017-08-18 07:21:53 +02:00
parent f3027fa574
commit 1a6e41cec8
2 changed files with 6 additions and 2 deletions

View File

@@ -175,6 +175,9 @@ class TcpConnection(threading.Thread, util.PrintError):
cert_reqs=ssl.CERT_REQUIRED,
ca_certs=(temporary_path if is_new else cert_path),
do_handshake_on_connect=True)
except socket.timeout:
self.print_error('timeout')
return
except ssl.SSLError as e:
self.print_error("SSL error:", e)
if e.errno != 1: