]> git.aero2k.de Git - urlbot-v3.git/commitdiff
should-never-happen scenario, which happened, fixed
authorThorsten <mail@aero2k.de>
Tue, 17 Aug 2021 16:06:38 +0000 (18:06 +0200)
committerThorsten <mail@aero2k.de>
Tue, 17 Aug 2021 16:06:38 +0000 (18:06 +0200)
distbot/plugins/searx.py

index 96e2725e7622697443f3939df396f3c095e34121..c7bffa82265ad440f4b178a0d9d1bf19f2d67217 100644 (file)
@@ -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))