mirror of
https://github.com/python/cpython.git
synced 2025-11-26 13:22:51 +00:00
#4788 qualify remove a bare except
This commit is contained in:
parent
e7f66f1008
commit
9c069fd76e
1 changed files with 1 additions and 1 deletions
|
|
@ -114,7 +114,7 @@ class SSLSocket(socket):
|
||||||
# see if it's connected
|
# see if it's connected
|
||||||
try:
|
try:
|
||||||
socket.getpeername(self)
|
socket.getpeername(self)
|
||||||
except:
|
except socket.error:
|
||||||
# no, no connection yet
|
# no, no connection yet
|
||||||
self._sslobj = None
|
self._sslobj = None
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue