We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7815111 commit 021ce43Copy full SHA for 021ce43
commands2/coroutinecommand.py
@@ -75,7 +75,7 @@ def initialize(self) -> None:
75
if self.coroutine_function:
76
self.coroutine = ensure_generator_function(self.coroutine_function)()
77
elif self.coroutine and self.is_finished:
78
- RuntimeError("Generator objects cannot be reused.")
+ raise RuntimeError("Generator objects cannot be reused.")
79
80
self.is_finished = False
81
0 commit comments