summaryrefslogtreecommitdiff
path: root/searx
diff options
context:
space:
mode:
Diffstat (limited to 'searx')
-rw-r--r--searx/engines/google_images.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/engines/google_images.py b/searx/engines/google_images.py
index e6445b1c4..1f9759c96 100644
--- a/searx/engines/google_images.py
+++ b/searx/engines/google_images.py
@@ -95,7 +95,7 @@ def response(resp):
json_start = resp.text.find('{"ischj":')
json_data = loads(resp.text[json_start:])
- for item in json_data["ischj"]["metadata"]:
+ for item in json_data["ischj"].get("metadata", []):
result_item = {
'url': item["result"]["referrer_url"],