소스 검색

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():