summaryrefslogtreecommitdiff
path: root/searx/engines/searchcode_doc.py
diff options
context:
space:
mode:
Diffstat (limited to 'searx/engines/searchcode_doc.py')
-rw-r--r--searx/engines/searchcode_doc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/engines/searchcode_doc.py b/searx/engines/searchcode_doc.py
index b5b7159be..76da8d752 100644
--- a/searx/engines/searchcode_doc.py
+++ b/searx/engines/searchcode_doc.py
@@ -35,7 +35,7 @@ def response(resp):
search_results = loads(resp.text)
# parse results
- for result in search_results['results']:
+ for result in search_results.get('results', []):
href = result['url']
title = "[" + result['type'] + "] " +\
result['namespace'] +\