浏览代码

Don't throw away the request if pageno is wrong

Cqoicebordel 9 年前
父节点
当前提交
ed1daa32ea
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      searx/search.py

+ 1
- 1
searx/search.py 查看文件

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