]> git.aero2k.de Git - urlbot-v3.git/commitdiff
fix search
authorThorsten <mail@aero2k.de>
Fri, 12 Oct 2018 20:40:21 +0000 (22:40 +0200)
committerThorsten <mail@aero2k.de>
Fri, 12 Oct 2018 20:40:21 +0000 (22:40 +0200)
distbot/plugins/searx.py

index 30fe6982500a0b00778c3d427f2feef38fada285..a3226823f53c625b2908c5fab17ad0259ec2fafd 100644 (file)
@@ -96,7 +96,7 @@ class Searx(Worker):
 
         result = self.searx(' '.join(get_words(msg)[1:]))
         if not result:
-            return {'msg': 'Sorry, no results.'}
+            return Action(msg='Sorry, no results.')
         else:
             abstract, url, provider = result