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