[issue13721] ssl.wrap_socket on a connected but failed connection succeeds and .peer_certificate gives AttributeError
Mads Kiilerich
report at bugs.python.org
Mon Jan 9 01:47:15 CET 2012
Mads Kiilerich <mads at kiilerich.com> added the comment:
I would find ValueError surprising here. socket.error or SSLError would be less surprising ... even though it technically isn't completely true. But isn't it more like a kind of RuntimeError to call getpeercert after the socket has been closed?
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13721>
_______________________________________
More information about the Python-bugs-list
mailing list