forked from zaclys/searxng
[enh] ignoring empty request urls
This commit is contained in:
parent
64cc960f9f
commit
4cc391169a
|
@ -130,6 +130,10 @@ def search(query, request, selected_engines):
|
|||
req = grequests.post
|
||||
request_args['data'] = request_params['data']
|
||||
|
||||
# ignoring empty urls
|
||||
if not request_params['url']:
|
||||
continue
|
||||
|
||||
requests.append(req(request_params['url'], **request_args))
|
||||
grequests.map(requests)
|
||||
for engine_name,engine_results in results.items():
|
||||
|
|
Loading…
Reference in New Issue