summaryrefslogtreecommitdiff
path: root/searx/engines/imdb.py
diff options
context:
space:
mode:
Diffstat (limited to 'searx/engines/imdb.py')
-rw-r--r--searx/engines/imdb.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/engines/imdb.py b/searx/engines/imdb.py
index a3dab736d..a7474fd5b 100644
--- a/searx/engines/imdb.py
+++ b/searx/engines/imdb.py
@@ -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']