1
0
mirror of https://github.com/searxng/searxng.git synced 2024-11-19 02:40:11 +01:00

Merge pull request #438 from Cqoicebordel/error_page_format

Don't throw away the request if pageno is wrong
This commit is contained in:
Adam Tauber 2015-12-01 15:50:47 +01:00
commit 786fe49fab

View File

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