Skip to content

Commit 73d4b4c

Browse files
committed
bugfix
1 parent 97c2c53 commit 73d4b4c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

libensemble/worker.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,4 +415,5 @@ def run(self) -> None:
415415
self.gen_runner.shutdown()
416416
self.sim_runner.shutdown()
417417
self.EnsembleDirectory.copy_back()
418-
Executor.executor.comm = None # so Executor can be pickled upon further libE calls
418+
if Executor.executor is not None:
419+
Executor.executor.comm = None # so Executor can be pickled upon further libE calls

0 commit comments

Comments
 (0)