From 4cc391169a0c0d3ea8d0535bc1baebe2bf5c8346 Mon Sep 17 00:00:00 2001 From: asciimoo Date: Mon, 4 Nov 2013 21:06:53 +0100 Subject: [PATCH] [enh] ignoring empty request urls --- searx/engines/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/searx/engines/__init__.py b/searx/engines/__init__.py index 85c9be4d8..629e170b7 100644 --- 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():