소스 검색

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