mirror of
https://github.com/searxng/searxng.git
synced 2024-12-21 00:36:29 +00:00
[enh] ignoring empty request urls
This commit is contained in:
parent
64cc960f9f
commit
4cc391169a
1 changed files with 4 additions and 0 deletions
|
@ -130,6 +130,10 @@ def search(query, request, selected_engines):
|
||||||
req = grequests.post
|
req = grequests.post
|
||||||
request_args['data'] = request_params['data']
|
request_args['data'] = request_params['data']
|
||||||
|
|
||||||
|
# ignoring empty urls
|
||||||
|
if not request_params['url']:
|
||||||
|
continue
|
||||||
|
|
||||||
requests.append(req(request_params['url'], **request_args))
|
requests.append(req(request_params['url'], **request_args))
|
||||||
grequests.map(requests)
|
grequests.map(requests)
|
||||||
for engine_name,engine_results in results.items():
|
for engine_name,engine_results in results.items():
|
||||||
|
|
Loading…
Reference in a new issue