mirror of
				https://github.com/searxng/searxng.git
				synced 2025-11-03 19:17:07 -05:00 
			
		
		
		
	Merge pull request #588 from dalf/fix-imdb
[fix] imdb: don't crash when there is no result
This commit is contained in:
		
						commit
						24c7d6300e
					
				@ -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…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user