Parcourir la source

AMQPConnectionException renamed to ConnectionException

Ask Solem il y a 16 ans
Parent
commit
17cdae9220
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      celery/worker/__init__.py

+ 1 - 1
celery/worker/__init__.py

@@ -63,7 +63,7 @@ class AMQPListener(object):
             try:
                 self.consume_messages()
             except (socket.error,
-                    self.amqp_connection.AMQPConnectionException):
+                    self.amqp_connection.ConnectionException):
                 self.logger.error("AMQPListener: Connection to broker lost. "
                                 + "Trying to re-establish connection...")