Explorar o código

Consumer: ack callback must handle AttributeError

Ask Solem %!s(int64=14) %!d(string=hai) anos
pai
achega
9f4a864827
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      celery/worker/consumer.py

+ 1 - 1
celery/worker/consumer.py

@@ -340,7 +340,7 @@ class Consumer(object):
             def ack():
                 try:
                     message.ack()
-                except self.connection_errors, exc:
+                except self.connection_errors + (AttributeError, ), exc:
                     self.logger.critical(
                             "Couldn't ack %r: message:%r reason:%r" % (
                                 message.delivery_tag, body, exc))