Fix --once livestreams raising a StopIteration.
This commit is contained in:
parent
9971d853fb
commit
5b7eb6870f
1 changed files with 2 additions and 2 deletions
|
@ -81,8 +81,8 @@ def livestream(
|
|||
generator = generator_printer(generator)
|
||||
|
||||
try:
|
||||
while True:
|
||||
step = next(generator)
|
||||
for step in generator:
|
||||
pass
|
||||
except KeyboardInterrupt:
|
||||
print()
|
||||
return
|
||||
|
|
Loading…
Reference in a new issue