diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/index-genenetwork | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/index-genenetwork b/scripts/index-genenetwork index 7600f90..b92fa5e 100755 --- a/scripts/index-genenetwork +++ b/scripts/index-genenetwork @@ -283,7 +283,7 @@ def group(generator: Iterable, chunk_size: int) -> Iterable: @contextlib.contextmanager -def worker_queue(number_of_workers: int = os.cpu_count()) -> Generator: +def worker_queue(number_of_workers: int = os.cpu_count() or 1) -> Generator: """Manage a pool of worker processes returning a function to spawn them.""" processes: deque = deque() |