Преглед изворни кода

Iterinactive should raise StopIteration

Ask Solem пре 14 година
родитељ
комит
8a5d9ceee9
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      celery/concurrency/processes/pool.py

+ 1 - 1
celery/concurrency/processes/pool.py

@@ -555,7 +555,7 @@ class Pool(object):
         for worker in self._pool:
             if not self._worker_active(worker):
                 yield worker
-        raise
+        raise StopIteration()
 
     def _worker_active(self, worker):
         for job in self._cache.values():