#4788 qualify some bare except clauses

This commit is contained in:
Benjamin Peterson 2008-12-31 03:37:51 +00:00
parent b1a85413b1
commit 43ea6d9acc
1 changed files with 2 additions and 2 deletions

View File

@ -103,7 +103,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:
@ -441,7 +441,7 @@ def sslwrap_simple (sock, keyfile=None, certfile=None):
PROTOCOL_SSLv23, None)
try:
sock.getpeername()
except:
except socket.error:
# no, no connection yet
pass
else: