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