mirror of
https://github.com/GAM-team/GAM.git
synced 2026-07-03 12:21:35 +00:00
Handle unknown server in gam version extended location (#947)
Line 847 drops a training space
This commit is contained in:
@@ -847,7 +847,10 @@ def _getServerTLSUsed(location):
|
||||
_, netloc, _, _, _, _ = urlparse(url)
|
||||
conn = 'https:%s' % netloc
|
||||
httpc = _createHttpObj()
|
||||
try:
|
||||
httpc.request(url)
|
||||
except httplib2.ServerNotFoundError as e:
|
||||
systemErrorExit(4, e)
|
||||
cipher_name, tls_ver, _ = httpc.connections[conn].sock.cipher()
|
||||
return tls_ver, cipher_name
|
||||
|
||||
|
||||
Reference in New Issue
Block a user