From c9d525cd3158d3b82d2eab20c6330cc97f41fe8c Mon Sep 17 00:00:00 2001 From: Thorsten Date: Tue, 17 Aug 2021 18:06:38 +0200 Subject: [PATCH] should-never-happen scenario, which happened, fixed --- distbot/plugins/searx.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/distbot/plugins/searx.py b/distbot/plugins/searx.py index 96e2725..c7bffa8 100644 --- a/distbot/plugins/searx.py +++ b/distbot/plugins/searx.py @@ -100,6 +100,8 @@ class Searx(Worker): def parse_body(self, msg): words = get_words(msg) + if not words: + return if words[0] == "next-searx" or words[0:2] == ["next", "searx"]: searx_provider = self.search_list.pop(0) return Action(msg='Ok. There goes {}'.format(searx_provider)) -- 2.39.2