forked from zaclys/searxng
		
	[fix] kickass: crash when no results
This commit is contained in:
		
							parent
							
								
									057ae1767b
								
							
						
					
					
						commit
						84b4932e21
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -43,7 +43,7 @@ def response(resp):
 | 
			
		|||
    results = []
 | 
			
		||||
    dom = html.fromstring(resp.text)
 | 
			
		||||
 | 
			
		||||
    search_res = eval_xpath_list(dom, '//table[contains(@class, "data")]//tr', None)
 | 
			
		||||
    search_res = eval_xpath_list(dom, '//table[contains(@class, "data")]//tr[descendant::a]', None)
 | 
			
		||||
    if search_res is None:
 | 
			
		||||
        return []
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue