From ed1daa32ea393d24d3626bfc29306b1b354487fb Mon Sep 17 00:00:00 2001 From: Cqoicebordel Date: Fri, 18 Sep 2015 20:44:04 +0200 Subject: [PATCH] Don't throw away the request if pageno is wrong Fix #424 but maybe only partially --- searx/search.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/searx/search.py b/searx/search.py index f2b5235b..54c22c19 100644 --- 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)