Explorar el Código

[fix] handling empty resultset II.

asciimoo hace 11 años
padre
commit
986c8e51a8
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      searx/engines/google_images.py

+ 1
- 1
searx/engines/google_images.py Ver fichero

@@ -18,7 +18,7 @@ def response(resp):
18 18
     search_res = loads(resp.text)
19 19
     if 'responseData' not in search_res:
20 20
         return []
21
-    if 'results' not in search_res['responseData']:
21
+    if 'results' not in search_res['responseData'] and search_res['responseData']['results']:
22 22
         return []
23 23
     for result in search_res['responseData']['results']:
24 24
         url = result['originalContextUrl']