Browse Source

[fix] type error

Adam Tauber 9 years ago
parent
commit
7c9f931baf
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      searx/search.py

+ 1
- 1
searx/search.py View File

@@ -482,7 +482,7 @@ class Search(object):
482 482
             try:
483 483
                 # 0 = None, 1 = Moderate, 2 = Strict
484 484
                 request_params['safesearch'] = int(request.cookies.get('safesearch'))
485
-            except ValueError:
485
+            except Exception:
486 486
                 request_params['safesearch'] = settings['search']['safe_search']
487 487
 
488 488
             # update request parameters dependent on