on master help sign in
Merge pull request #438 from Cqoicebordel/error_page_format

Don't throw away the request if pageno is wrong

commit786fe49fab670c3f8f8e14c6da55809ea675b9b2 authorAdam Tauber <asciimoo@gmail.com> dateTue 1 Dec 2015, 15:50 (11 years ago) parentbcfb9f8ed1daa3
1 file changed+1−1
searx/search.py+1−1
searx/search.py+1−1
@@ -156,7 +156,7 @@ class Search(object):
156156 # set pagenumber
157157 pageno_param = self.request_data.get('pageno', '1')
158158 if not pageno_param.isdigit() or int(pageno_param) < 1:
159− raise Exception('wrong pagenumber')
159+ pageno_param = 1
160160
161161 self.pageno = int(pageno_param)
162162