Pārlūkot izejas kodu

Merge pull request #438 from Cqoicebordel/error_page_format

Don't throw away the request if pageno is wrong
Adam Tauber 9 gadus atpakaļ
vecāks
revīzija
786fe49fab
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

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