Browse Source

- recoll.py: guard access to nres parameter, unpatched recoll-webui

frankdelange 6 years ago
parent
commit
5c8c85276d
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      searx/engines/recoll.py

+ 2
- 1
searx/engines/recoll.py View File

79
 
79
 
80
         results.append(item)
80
         results.append(item)
81
 
81
 
82
-    results.append({'number_of_results': response_json['nres']})
82
+    if 'nres' in response_json:
83
+        results.append({'number_of_results': response_json['nres']})
83
 
84
 
84
     return results
85
     return results