except with error ..

This commit is contained in:
benoitc 2010-02-25 16:05:51 +01:00
parent 1126579963
commit 7d31b224b9

View File

@ -106,7 +106,7 @@ def read_partial(sock, length):
def write(sock, data): def write(sock, data):
try: try:
sock.sendall(data) sock.sendall(data)
except: except socket.error, e:
if e[0] not in (errno.EWOULDBLOCK, errno.EAGAIN): if e[0] not in (errno.EWOULDBLOCK, errno.EAGAIN):
pass pass
raise raise