Browse Source

Don't throw away the request if pageno is wrong
Fix #424 but maybe only partially

Cqoicebordel 9 years ago
parent
commit
ed1daa32ea
1 changed files with 1 additions and 1 deletions
  1. 1 1
      searx/search.py

+ 1 - 1
searx/search.py

@@ -358,7 +358,7 @@ class Search(object):
         # set pagenumber
         pageno_param = self.request_data.get('pageno', '1')
         if not pageno_param.isdigit() or int(pageno_param) < 1:
-            raise Exception('wrong pagenumber')
+            pageno_param = 1
 
         self.pageno = int(pageno_param)