summaryrefslogtreecommitdiff
path: root/searx/search.py
diff options
context:
space:
mode:
authorAdam Tauber <asciimoo@gmail.com>2015-08-02 20:41:44 +0200
committerAdam Tauber <asciimoo@gmail.com>2015-08-02 20:41:44 +0200
commit7c9f931baff35e8a8986810971fa1949f18c19ad (patch)
treea79141cc6592d00c79f16c29609133eb6f471850 /searx/search.py
parent43cd8e0c4129571a263429173c7a9fe7092e1dec (diff)
downloadsearxng-7c9f931baff35e8a8986810971fa1949f18c19ad.tar.gz
searxng-7c9f931baff35e8a8986810971fa1949f18c19ad.zip
[fix] type error
Diffstat (limited to 'searx/search.py')
-rw-r--r--searx/search.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/search.py b/searx/search.py
index 5054ce798..6288a46eb 100644
--- a/searx/search.py
+++ b/searx/search.py
@@ -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