Skip to content

Commit 021ce43

Browse files
Update commands2/coroutinecommand.py
Co-authored-by: David Vo <[email protected]>
1 parent 7815111 commit 021ce43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

commands2/coroutinecommand.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def initialize(self) -> None:
7575
if self.coroutine_function:
7676
self.coroutine = ensure_generator_function(self.coroutine_function)()
7777
elif self.coroutine and self.is_finished:
78-
RuntimeError("Generator objects cannot be reused.")
78+
raise RuntimeError("Generator objects cannot be reused.")
7979

8080
self.is_finished = False
8181

0 commit comments

Comments
 (0)