Browse Source

Consumer: ack callback must handle AttributeError

Ask Solem 14 years ago
parent
commit
9f4a864827
1 changed files with 1 additions and 1 deletions
  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))