diff options
Diffstat (limited to 'searx/engines/google_images.py')
-rwxr-xr-x | searx/engines/google_images.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/searx/engines/google_images.py b/searx/engines/google_images.py index 7294b8ad2..27632e9b1 100755 --- a/searx/engines/google_images.py +++ b/searx/engines/google_images.py @@ -18,6 +18,8 @@ def response(resp): search_res = loads(resp.text) if 'responseData' not in search_res: return [] + if 'results' not in search_res['responseData']: + return [] for result in search_res['responseData']['results']: url = result['originalContextUrl'] title = result['title'] |