From: Thorsten Date: Tue, 17 Aug 2021 16:06:38 +0000 (+0200) Subject: should-never-happen scenario, which happened, fixed X-Git-Url: https://git.aero2k.de/?a=commitdiff_plain;h=c9d525cd3158d3b82d2eab20c6330cc97f41fe8c;p=urlbot-v3.git should-never-happen scenario, which happened, fixed --- 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))