From f6ff4df21bbf636a6e095c8960241e9346cade33 Mon Sep 17 00:00:00 2001 From: Ephemera Date: Mon, 11 Mar 2013 15:26:42 +0900 Subject: [PATCH] Use get_errno --- kombu/connection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kombu/connection.py b/kombu/connection.py index f921de8d..496494e3 100644 --- a/kombu/connection.py +++ b/kombu/connection.py @@ -290,7 +290,7 @@ class Connection(object): self.more_to_read = False return False except socket.error, exc: - if exc.errno in (errno.EAGAIN, errno.EINTR): + if get_errno(exc) in (errno.EAGAIN, errno.EINTR): self.more_to_read = False return False raise