mirror of https://github.com/celery/kombu.git
Use get_errno
This commit is contained in:
parent
009deb8898
commit
f6ff4df21b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue