logo

searx

My custom branche(s) on searx, a meta-search engine
commit: aff33ea8969a477e9e02ef4be00872685ba1ca72
parent: 39c3f5658e215076a34a8706619004eef836ce60
Author: Adam Tauber <asciimoo@gmail.com>
Date:   Sat, 10 Jan 2015 15:27:42 +0100

[fix] autocompleter error handling

Diffstat:

Msearx/webapp.py4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/searx/webapp.py b/searx/webapp.py @@ -343,14 +343,14 @@ def autocompleter(): # check if search query is set if not query.getSearchQuery(): - return + return '', 400 # run autocompleter completer = autocomplete_backends.get(request.cookies.get('autocomplete')) # check if valid autocompleter is selected if not completer: - return + return '', 400 # run autocompletion raw_results = completer(query.getSearchQuery())