Skip to content

Commit 0adb531

Browse files
committed
fix wait_interactive when there's nothing to wait for
1 parent cc18e6a commit 0adb531

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ipyparallel/client/client.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1325,6 +1325,8 @@ def wait_interactive(self, jobs=None, interval=1.0, timeout=-1.0):
13251325
if jobs is None:
13261326
# get futures for results
13271327
futures = [f for f in self._futures.values() if hasattr(f, 'output')]
1328+
if not futures:
1329+
return
13281330
ar = AsyncResult(self, futures, owner=False)
13291331
else:
13301332
ar = self._asyncresult_from_jobs(jobs, owner=False)

0 commit comments

Comments
 (0)