summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Tauber <asciimoo@gmail.com>2015-12-01 15:50:47 +0100
committerAdam Tauber <asciimoo@gmail.com>2015-12-01 15:50:47 +0100
commit786fe49fab670c3f8f8e14c6da55809ea675b9b2 (patch)
tree91dfd9d3ceae39378886d405251c57355fd6e055
parentbcfb9f8099d77f97dc7c3eecba509d96c8c5cc42 (diff)
parented1daa32ea393d24d3626bfc29306b1b354487fb (diff)
downloadsearxng-786fe49fab670c3f8f8e14c6da55809ea675b9b2.tar.gz
searxng-786fe49fab670c3f8f8e14c6da55809ea675b9b2.zip
Merge pull request #438 from Cqoicebordel/error_page_format
Don't throw away the request if pageno is wrong
-rw-r--r--searx/search.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/search.py b/searx/search.py
index 02676a149..655b7808a 100644
--- 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)