Explorar o código

Fixes typo '__error_handler' -> '_error_handler'

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

+ 1 - 1
celery/worker/consumer.py

@@ -582,7 +582,7 @@ class Consumer(object):
 
         # Callback called for each retry while the connection
         # can't be established.
-        def __error_handler(exc, interval):
+        def _error_handler(exc, interval):
             self.logger.error("Consumer: Connection Error: %s. " % exc
                             + "Trying again in %d seconds..." % interval)