diff options
author | Adam Tauber <adam.tauber@balabit.com> | 2015-02-02 09:36:43 +0100 |
---|---|---|
committer | Adam Tauber <adam.tauber@balabit.com> | 2015-02-02 09:36:43 +0100 |
commit | 7f865356f9a6c1b40d0c668c59b3d081de618bac (patch) | |
tree | 60e9acb27577968a41136c04f248c24871e83860 /searx/engines/searchcode_doc.py | |
parent | 03137eebd9fdfaa57452cb364c1bc9f31b243f67 (diff) | |
parent | 5a16077455ef9e821a2b5f5f7e975be8a37ce83d (diff) | |
download | searxng-7f865356f9a6c1b40d0c668c59b3d081de618bac.tar.gz searxng-7f865356f9a6c1b40d0c668c59b3d081de618bac.zip |
Merge branch 'unit-tests' of https://github.com/Cqoicebordel/searx into Cqoicebordel-unit-tests
Conflicts:
searx/tests/test_engines.py
Diffstat (limited to 'searx/engines/searchcode_doc.py')
-rw-r--r-- | searx/engines/searchcode_doc.py | 2 |
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'] +\ |