From 5c3d21065a9787ccfa43566b601f8943c26c25f6 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Sat, 16 Oct 2010 21:29:35 +0000 Subject: [PATCH] bug fix (reported by nightman) --- doc/THANKS | 3 +++ extra/keepalive/keepalive.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/doc/THANKS b/doc/THANKS index a6d95dbf9..a80abcaf1 100644 --- a/doc/THANKS +++ b/doc/THANKS @@ -373,6 +373,9 @@ mariano mitchell for reporting a bug +nightman + for reporting a bug + pacman730 for reporting a bug diff --git a/extra/keepalive/keepalive.py b/extra/keepalive/keepalive.py index 8cdc41f97..e53e419fd 100644 --- a/extra/keepalive/keepalive.py +++ b/extra/keepalive/keepalive.py @@ -152,7 +152,7 @@ class HTTPHandler(urllib2.HTTPHandler): if not h is None: try: self._start_connection(h, req) - except socket.error, e: + except: r = None else: try: r = h.getresponse()