From 24a4f9a375c17d3614d46b1a8d74c09b6e075a21 Mon Sep 17 00:00:00 2001 From: Daniel Langbein Date: Fri, 22 Jul 2022 11:46:57 +0200 Subject: [PATCH] fix --- main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index acb19f1..d7d776a 100755 --- a/main.py +++ b/main.py @@ -18,7 +18,8 @@ def main(): # filtered = filtered_example() tps = [Throughput.from_str(line) for line in filtered] - print(f'From {tps[0].dt} until {tps[-1].dt}:') + if len(tps) > 0: + print(f'From {tps[0].dt} until {tps[-1].dt}:') grouped_by_day = {} for tp in tps: