commit: ed1daa32ea393d24d3626bfc29306b1b354487fb
parent 8adc80123ac095e11ae3eae47fa05bdb574da731
Author: Cqoicebordel <Cqoicebordel@users.noreply.github.com>
Date: Fri, 18 Sep 2015 20:44:04 +0200
Don't throw away the request if pageno is wrong
Fix #424 but maybe only partially
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/searx/search.py b/searx/search.py
@@ -358,7 +358,7 @@ class Search(object):
# set pagenumber
pageno_param = self.request_data.get('pageno', '1')
if not pageno_param.isdigit() or int(pageno_param) < 1:
- raise Exception('wrong pagenumber')
+ pageno_param = 1
self.pageno = int(pageno_param)