From 7d31b224b9f8cb8cd5af9859ee3a4ea563100b9f Mon Sep 17 00:00:00 2001 From: benoitc Date: Thu, 25 Feb 2010 16:05:51 +0100 Subject: [PATCH] except with error .. --- gunicorn/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gunicorn/util.py b/gunicorn/util.py index 062e5175..e637de51 100644 --- a/gunicorn/util.py +++ b/gunicorn/util.py @@ -106,7 +106,7 @@ def read_partial(sock, length): def write(sock, data): try: sock.sendall(data) - except: + except socket.error, e: if e[0] not in (errno.EWOULDBLOCK, errno.EAGAIN): pass raise