mirror of
https://github.com/searxng/searxng.git
synced 2025-12-24 04:30:02 +00:00
[fix] type error
This commit is contained in:
@@ -482,7 +482,7 @@ class Search(object):
|
||||
try:
|
||||
# 0 = None, 1 = Moderate, 2 = Strict
|
||||
request_params['safesearch'] = int(request.cookies.get('safesearch'))
|
||||
except ValueError:
|
||||
except Exception:
|
||||
request_params['safesearch'] = settings['search']['safe_search']
|
||||
|
||||
# update request parameters dependent on
|
||||
|
||||
Reference in New Issue
Block a user