Ver código fonte

[fix] gettext requires request.preferences

Adam Tauber 8 anos atrás
pai
commit
827f9e41ca
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1
    1
      searx/webapp.py

+ 1
- 1
searx/webapp.py Ver arquivo

@@ -369,11 +369,11 @@ def pre_request():
369 369
     request.errors = []
370 370
 
371 371
     preferences = Preferences(themes, categories.keys(), engines, plugins)
372
+    request.preferences = preferences
372 373
     try:
373 374
         preferences.parse_cookies(request.cookies)
374 375
     except:
375 376
         request.errors.append(gettext('Invalid settings, please edit your preferences'))
376
-    request.preferences = preferences
377 377
 
378 378
     # merge GET, POST vars
379 379
     # request.form