Explorar o código

AMQPConnectionException renamed to ConnectionException

Ask Solem %!s(int64=16) %!d(string=hai) anos
pai
achega
17cdae9220
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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...")