summaryrefslogtreecommitdiff
path: root/searx/answerers
diff options
context:
space:
mode:
Diffstat (limited to 'searx/answerers')
-rw-r--r--searx/answerers/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/answerers/__init__.py b/searx/answerers/__init__.py
index 97e7e5854..8e2b9b35a 100644
--- a/searx/answerers/__init__.py
+++ b/searx/answerers/__init__.py
@@ -32,7 +32,7 @@ def ask(query):
results = []
query_parts = list(filter(None, query.query.split()))
- if query_parts[0] not in answerers_by_keywords:
+ if not query_parts or query_parts[0] not in answerers_by_keywords:
return results
for answerer in answerers_by_keywords[query_parts[0]]: