Skip to content

SearXNG is a free internet metasearch engine which aggregates results from various search services and databases. Users are neither tracked nor profiled.

Don't throw away the request if pageno is wrong Fix #424 but maybe only partially

Cqoicebordeled1daa32ea39
diff --git a/searx/search.py b/searx/search.py
index f2b5235b8..54c22c190 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)