From 19d3f42fe7ac34acfd8974c65c9079a62f29de92 Mon Sep 17 00:00:00 2001 From: Someone Date: Tue, 14 Nov 2023 21:42:28 +0100 Subject: [PATCH] modules/CommandJoinAll.py --- modules/CommandJoinAll.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/CommandJoinAll.py b/modules/CommandJoinAll.py index cd66bdd..3c36e50 100644 --- a/modules/CommandJoinAll.py +++ b/modules/CommandJoinAll.py @@ -54,7 +54,8 @@ class CommandJoinAll(AbstractCommand): if len(posts) == 7: break - new_dict[chan["id"]] = min([x["create_at"] for x in posts]) + if len(posts) > 0: + new_dict[chan["id"]] = min([x["create_at"] for x in posts]) self.channel_index = new_dict self.channel_index_th = threading.Timer(3600.0, self._index_channels) -- 2.43.0