From 986c8e51a8ce55a82bc5670701f237b616f3b096 Mon Sep 17 00:00:00 2001 From: asciimoo Date: Sun, 20 Oct 2013 20:02:20 +0200 Subject: [PATCH] [fix] handling empty resultset II. --- searx/engines/google_images.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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']