mirror of
				https://github.com/searxng/searxng.git
				synced 2025-10-25 15:52:31 -04:00 
			
		
		
		
	[fix] handle empty response from wikipedia engine - closes #1114
This commit is contained in:
		
							parent
							
								
									f8713512be
								
							
						
					
					
						commit
						00512e36c1
					
				| @ -79,6 +79,9 @@ def response(resp): | ||||
| 
 | ||||
|     # wikipedia article's unique id | ||||
|     # first valid id is assumed to be the requested article | ||||
|     if 'pages' not in search_result['query']: | ||||
|         return results | ||||
| 
 | ||||
|     for article_id in search_result['query']['pages']: | ||||
|         page = search_result['query']['pages'][article_id] | ||||
|         if int(article_id) > 0: | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user