-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
self._extra.update(
sslcontext=None,
ssl_object=None,
peername=self._rawsock.getpeername(),
peer_hostname=peer_hostname,
server_hostname=server_hostname
)
try:
self._tls_conn.set_tlsext_host_name(
self._extra["server_hostname"].encode("IDNA"))
except KeyError:
pass
There is always a server_hostname dictionary key, so checking for KeyError is pointless. You need something like if self._extra.get("server_hostname") instead.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels