mirror of
				https://github.com/searxng/searxng
				synced 2024-01-01 19:24:07 +01:00 
			
		
		
		
	Digg correction
Return no result instead of crashing if no result
This commit is contained in:
		
							parent
							
								
									7b531c6fce
								
							
						
					
					
						commit
						4450ed5503
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		|  | @ -44,6 +44,9 @@ def response(resp): | ||||||
| 
 | 
 | ||||||
|     search_result = loads(resp.text) |     search_result = loads(resp.text) | ||||||
| 
 | 
 | ||||||
|  |     if search_result['html'] == '': | ||||||
|  |         return results | ||||||
|  | 
 | ||||||
|     dom = html.fromstring(search_result['html']) |     dom = html.fromstring(search_result['html']) | ||||||
| 
 | 
 | ||||||
|     # parse results |     # parse results | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Cqoicebordel
						Cqoicebordel