Explorar el Código

Forgot to return item in TaskBucket.get

Ask Solem hace 15 años
padre
commit
c1ad026f08
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      celery/buckets.py

+ 1 - 1
celery/buckets.py

@@ -69,7 +69,7 @@ class TaskBucket(object):
         """
         for bucket in self.buckets.values():
             try:
-                item = bucket.get_nowait()
+                return bucket.get_nowait()
             except (BucketRateExceeded, QueueEmpty):
                 pass
             time.sleep(0.01)