From bc2cf855bd0ab635927b62ad29aca157fc7da656 Mon Sep 17 00:00:00 2001 From: alexeyzverev Date: Wed, 4 Oct 2023 16:40:55 +0100 Subject: [PATCH] SequenceCache fix --- recon_lw/SequenceCache.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/recon_lw/SequenceCache.py b/recon_lw/SequenceCache.py index befde0e..2eb074d 100644 --- a/recon_lw/SequenceCache.py +++ b/recon_lw/SequenceCache.py @@ -69,6 +69,8 @@ def get_next_chunk(self, current_ts: dict) -> SortedKeyList: else: expiring_times = list(self._time_indexes.keys()) + if len(expiring_times) == 0: + return [] start = None end = None for t in expiring_times: