diff options
author | Cqoicebordel <Cqoicebordel@users.noreply.github.com> | 2015-01-27 22:39:25 +0100 |
---|---|---|
committer | Cqoicebordel <Cqoicebordel@users.noreply.github.com> | 2015-01-27 22:39:25 +0100 |
commit | 3282e62ff92f1c2158cb169d2a21a5988766450c (patch) | |
tree | 9287261c657a2751421ffc24cf391e8980c86d3c /searx/engines/searchcode_code.py | |
parent | 0f81aa8410623e790f4ad01b32e2b37f6258356a (diff) | |
download | searxng-3282e62ff92f1c2158cb169d2a21a5988766450c.tar.gz searxng-3282e62ff92f1c2158cb169d2a21a5988766450c.zip |
Searchcode engines corrections
Diffstat (limited to 'searx/engines/searchcode_code.py')
-rw-r--r-- | searx/engines/searchcode_code.py | 2 |
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'] |