]> granicus.if.org Git - python/commitdiff
#4788 qualify remove a bare except
authorBenjamin Peterson <benjamin@python.org>
Wed, 31 Dec 2008 03:43:28 +0000 (03:43 +0000)
committerBenjamin Peterson <benjamin@python.org>
Wed, 31 Dec 2008 03:43:28 +0000 (03:43 +0000)
Lib/ssl.py

index cd54437a0c5d2c0f2d2da281dc17642902055298..92883e9aa1c826e8a5a32451b4d9909874e66a38 100644 (file)
@@ -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: