logo

searx

My custom branche(s) on searx, a meta-search engine
commit: 786fe49fab670c3f8f8e14c6da55809ea675b9b2
parent: bcfb9f8099d77f97dc7c3eecba509d96c8c5cc42
Author: Adam Tauber <asciimoo@gmail.com>
Date:   Tue,  1 Dec 2015 15:50:47 +0100

Merge pull request #438 from Cqoicebordel/error_page_format

Don't throw away the request if pageno is wrong

Diffstat:

Msearx/search.py2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/searx/search.py b/searx/search.py @@ -156,7 +156,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)