logo

searx

Unnamed repository; edit this file 'description' to name the repository.
commit: 4cc391169a0c0d3ea8d0535bc1baebe2bf5c8346
parent: 64cc960f9fdf72d04bce50d19a292ed3df9b8aa7
Author: asciimoo <asciimoo@gmail.com>
Date:   Mon,  4 Nov 2013 21:06:53 +0100

[enh] ignoring empty request urls

Diffstat:

searx/engines/__init__.py | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/searx/engines/__init__.py b/searx/engines/__init__.py @@ -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():