logo

searx

My custom branche(s) on searx, a meta-search engine
commit: 827f9e41ca84638d873997001b53e7f4a62a78aa
parent: 028e5b43d4aa43c498a60de9c6dac0bb3a0bb96d
Author: Adam Tauber <asciimoo@gmail.com>
Date:   Tue, 15 Nov 2016 09:56:18 +0100

[fix] gettext requires request.preferences

Diffstat:

Msearx/webapp.py2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/searx/webapp.py b/searx/webapp.py @@ -369,11 +369,11 @@ def pre_request(): request.errors = [] preferences = Preferences(themes, categories.keys(), engines, plugins) + request.preferences = preferences try: preferences.parse_cookies(request.cookies) except: request.errors.append(gettext('Invalid settings, please edit your preferences')) - request.preferences = preferences # merge GET, POST vars # request.form