forked from zaclys/searxng
		
	[fix] imdb: don't crash when there is no result
This commit is contained in:
		
							parent
							
								
									e4a2d354aa
								
							
						
					
					
						commit
						037cb7dd3d
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -57,7 +57,7 @@ def response(resp):
 | 
			
		|||
    suggestions = json.loads(resp.text)
 | 
			
		||||
    results = []
 | 
			
		||||
 | 
			
		||||
    for entry in suggestions['d']:
 | 
			
		||||
    for entry in suggestions.get('d', []):
 | 
			
		||||
 | 
			
		||||
        # https://developer.imdb.com/documentation/key-concepts#imdb-ids
 | 
			
		||||
        entry_id = entry['id']
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue