Explorar el Código

Merge pull request #438 from Cqoicebordel/error_page_format

Don't throw away the request if pageno is wrong
Adam Tauber hace 9 años
padre
commit
786fe49fab
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      searx/search.py

+ 1
- 1
searx/search.py Ver fichero

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