mirror of https://github.com/python/cpython
#4788 qualify remove a bare except
This commit is contained in:
parent
e7f66f1008
commit
9c069fd76e
|
@ -114,7 +114,7 @@ class SSLSocket(socket):
|
|||
# see if it's connected
|
||||
try:
|
||||
socket.getpeername(self)
|
||||
except:
|
||||
except socket.error:
|
||||
# no, no connection yet
|
||||
self._sslobj = None
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue