summaryrefslogtreecommitdiffstats
path: root/Lib/ssl.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2008-12-31 03:43:28 (GMT)
committerBenjamin Peterson <benjamin@python.org>2008-12-31 03:43:28 (GMT)
commit9c069fd76ea3442ed85da069e8d996afc2888a9f (patch)
tree7074be8ed08373d68c2c3a3a028926bc3903cb23 /Lib/ssl.py
parente7f66f10080a5d01826a243cf8ec17fb2e4f7d2e (diff)
downloadcpython-9c069fd76ea3442ed85da069e8d996afc2888a9f.zip
cpython-9c069fd76ea3442ed85da069e8d996afc2888a9f.tar.gz
cpython-9c069fd76ea3442ed85da069e8d996afc2888a9f.tar.bz2
#4788 qualify remove a bare except
Diffstat (limited to 'Lib/ssl.py')
-rw-r--r--Lib/ssl.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/ssl.py b/Lib/ssl.py
index cd54437..92883e9 100644
--- a/Lib/ssl.py
+++ b/Lib/ssl.py
@@ -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: