diff options
author | Alexandre Flament <alex@al-f.net> | 2020-11-16 09:43:23 +0100 |
---|---|---|
committer | Alexandre Flament <alex@al-f.net> | 2020-12-01 15:21:19 +0100 |
commit | b00d108673082fc2487b2d122db00d988f561427 (patch) | |
tree | 51b5324935f24864730d705efd9f4f6a9dea465f /searx/webapp.py | |
parent | 9ed3ee2bebf2f159d4231d9aad9df53aea6db90a (diff) | |
download | searxng-b00d108673082fc2487b2d122db00d988f561427.tar.gz searxng-b00d108673082fc2487b2d122db00d988f561427.zip |
[mod] pylint: numerous minor code fixes
Diffstat (limited to 'searx/webapp.py')
-rwxr-xr-x | searx/webapp.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/searx/webapp.py b/searx/webapp.py index 6186fe6ce..e73322a77 100755 --- a/searx/webapp.py +++ b/searx/webapp.py @@ -466,7 +466,7 @@ def pre_request(): else: try: preferences.parse_dict(request.form) - except Exception as e: + except Exception: logger.exception('invalid settings') request.errors.append(gettext('Invalid settings')) @@ -819,7 +819,6 @@ def preferences(): # render preferences image_proxy = request.preferences.get_value('image_proxy') - lang = request.preferences.get_value('language') disabled_engines = request.preferences.engines.get_disabled() allowed_plugins = request.preferences.plugins.get_enabled() |