forked from zaclys/searxng
		
	Merge pull request #438 from Cqoicebordel/error_page_format
Don't throw away the request if pageno is wrong
This commit is contained in:
		
						commit
						786fe49fab
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -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) | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Adam Tauber
						Adam Tauber