diff options
author | asciimoo <asciimoo@gmail.com> | 2013-11-04 21:06:53 +0100 |
---|---|---|
committer | asciimoo <asciimoo@gmail.com> | 2013-11-04 21:06:53 +0100 |
commit | 4cc391169a0c0d3ea8d0535bc1baebe2bf5c8346 (patch) | |
tree | 95adbb8e22162a3641ed395e797901dc71824b2e /searx/engines/__init__.py | |
parent | 64cc960f9fdf72d04bce50d19a292ed3df9b8aa7 (diff) | |
download | searxng-4cc391169a0c0d3ea8d0535bc1baebe2bf5c8346.tar.gz searxng-4cc391169a0c0d3ea8d0535bc1baebe2bf5c8346.zip |
[enh] ignoring empty request urls
Diffstat (limited to 'searx/engines/__init__.py')
-rw-r--r-- | searx/engines/__init__.py | 4 |
1 files changed, 4 insertions, 0 deletions
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(): |