diff options
author | asciimoo <asciimoo@gmail.com> | 2013-10-20 20:02:20 +0200 |
---|---|---|
committer | asciimoo <asciimoo@gmail.com> | 2013-10-20 20:02:20 +0200 |
commit | 986c8e51a8ce55a82bc5670701f237b616f3b096 (patch) | |
tree | 733a27647e0fa6e73a664d4f3e480d3e19ae40f5 /searx/engines | |
parent | 126682a6ce8719f81fc8225578542c437607b2fb (diff) | |
download | searxng-986c8e51a8ce55a82bc5670701f237b616f3b096.tar.gz searxng-986c8e51a8ce55a82bc5670701f237b616f3b096.zip |
[fix] handling empty resultset II.
Diffstat (limited to 'searx/engines')
-rwxr-xr-x | searx/engines/google_images.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/engines/google_images.py b/searx/engines/google_images.py index 27632e9b1..c1fadb19f 100755 --- a/searx/engines/google_images.py +++ b/searx/engines/google_images.py @@ -18,7 +18,7 @@ def response(resp): search_res = loads(resp.text) if 'responseData' not in search_res: return [] - if 'results' not in search_res['responseData']: + if 'results' not in search_res['responseData'] and search_res['responseData']['results']: return [] for result in search_res['responseData']['results']: url = result['originalContextUrl'] |