You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
SSLSocket.get_verified_chain() and get_unverified_chain() raise AttributeError after the TLS layer is torn down #155327
SSLSocket.get_verified_chain() and SSLSocket.get_unverified_chain() raise AttributeError when called after the socket's TLS layer is torn down (for
example after unwrap()), while every other query method (cipher(), version(), group(), ...) returns a value:
>>> s.unwrap()
>>> s.get_verified_chain()
Traceback (most recent call last):
...
AttributeError: 'NoneType' object has no attribute 'get_verified_chain'
The two methods access self._sslobj without the _checkClosed() / if self._sslobj is None guard the sibling methods use. They were added in gh-109113 (3.13), so 3.13 and later are affected.
Activity
94mbi7 commentedon Aug 8, 2026
is this open?