From 5b7eb6870f1a9be91b3d9072a41e16367db0b200 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Fri, 20 Apr 2018 23:18:33 -0700 Subject: [PATCH] Fix --once livestreams raising a StopIteration. --- timesearch/livestream.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/timesearch/livestream.py b/timesearch/livestream.py index e98bfa6..9f0b47d 100644 --- a/timesearch/livestream.py +++ b/timesearch/livestream.py @@ -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