Pārlūkot izejas kodu

Don't throw away the request if pageno is wrong

Cqoicebordel 9 gadus atpakaļ
vecāks
revīzija
ed1daa32ea
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1
    1
      searx/search.py

+ 1
- 1
searx/search.py Parādīt failu

@@ -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