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)
|
generator = generator_printer(generator)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
while True:
|
for step in generator:
|
||||||
step = next(generator)
|
pass
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
print()
|
print()
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in a new issue