Browse Source

Don't throw away the request if pageno is wrong

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 View File

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