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)