Skip to content

Commit 3898b15

Browse files
committed
recommend wait_for_engines() in NoEnginesRegistered message
1 parent 33bd6cd commit 3898b15

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

ipyparallel/error.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,13 @@ class EngineError(KernelError):
5151

5252

5353
class NoEnginesRegistered(KernelError):
54-
pass
54+
"""Exception for operations that require some engines, but none exist"""
55+
56+
def __str__(self):
57+
return (
58+
"This operation requires engines."
59+
" Try client.wait_for_engines(n) to wait for engines to register."
60+
)
5561

5662

5763
class TaskAborted(KernelError):

0 commit comments

Comments
 (0)