summaryrefslogtreecommitdiff
path: root/searx/search.py
diff options
context:
space:
mode:
authorCqoicebordel <Cqoicebordel@users.noreply.github.com>2015-09-18 20:44:04 +0200
committerCqoicebordel <Cqoicebordel@users.noreply.github.com>2015-09-18 20:44:04 +0200
commited1daa32ea393d24d3626bfc29306b1b354487fb (patch)
tree7ea053482777d2b2e16cd2cc733e81b1c7a350c4 /searx/search.py
parent8adc80123ac095e11ae3eae47fa05bdb574da731 (diff)
downloadsearxng-ed1daa32ea393d24d3626bfc29306b1b354487fb.tar.gz
searxng-ed1daa32ea393d24d3626bfc29306b1b354487fb.zip
Don't throw away the request if pageno is wrong
Fix #424 but maybe only partially
Diffstat (limited to 'searx/search.py')
-rw-r--r--searx/search.py2
1 files changed, 1 insertions, 1 deletions
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)