summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--searx/engines/json_engine.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/searx/engines/json_engine.py b/searx/engines/json_engine.py
index fa169f015..eeae5c235 100644
--- a/searx/engines/json_engine.py
+++ b/searx/engines/json_engine.py
@@ -102,8 +102,11 @@ def response(resp):
if not len(rs):
return results
for result in rs[0]:
- url = query(result, url_query)[0]
- title = query(result, title_query)[0]
+ try:
+ url = query(result, url_query)[0]
+ title = query(result, title_query)[0]
+ except:
+ continue
try:
content = query(result, content_query)[0]
except: