From 7c9f931baff35e8a8986810971fa1949f18c19ad Mon Sep 17 00:00:00 2001 From: Adam Tauber Date: Sun, 2 Aug 2015 20:41:44 +0200 Subject: [PATCH] [fix] type error --- searx/search.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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