summaryrefslogtreecommitdiff
path: root/searx/engines/searchcode_code.py
diff options
context:
space:
mode:
authorCqoicebordel <Cqoicebordel@users.noreply.github.com>2015-01-27 22:39:25 +0100
committerCqoicebordel <Cqoicebordel@users.noreply.github.com>2015-01-27 22:39:25 +0100
commit3282e62ff92f1c2158cb169d2a21a5988766450c (patch)
tree9287261c657a2751421ffc24cf391e8980c86d3c /searx/engines/searchcode_code.py
parent0f81aa8410623e790f4ad01b32e2b37f6258356a (diff)
downloadsearxng-3282e62ff92f1c2158cb169d2a21a5988766450c.tar.gz
searxng-3282e62ff92f1c2158cb169d2a21a5988766450c.zip
Searchcode engines corrections
Diffstat (limited to 'searx/engines/searchcode_code.py')
-rw-r--r--searx/engines/searchcode_code.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/engines/searchcode_code.py b/searx/engines/searchcode_code.py
index 655818da2..f276697b1 100644
--- a/searx/engines/searchcode_code.py
+++ b/searx/engines/searchcode_code.py
@@ -42,7 +42,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['name'] + " - " + result['filename']
repo = result['repo']