From d5bcac4d14d46560b9db1141925dcfd524fab58c Mon Sep 17 00:00:00 2001 From: Ross Scroggs Date: Wed, 21 Dec 2016 12:04:30 -0800 Subject: [PATCH] Fix run-batch to handle 0 items (#363) --- src/gam.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gam.py b/src/gam.py index 585716eb..0fbf43de 100755 --- a/src/gam.py +++ b/src/gam.py @@ -10180,6 +10180,8 @@ gam create project def run_batch(items): from multiprocessing import Pool + if not items: + return num_worker_threads = min(len(items), GC_Values[GC_NUM_THREADS]) pool = Pool(processes=num_worker_threads) sys.stderr.write(u'Using %s processes...\n' % num_worker_threads)