2
0
mirror of https://github.com/searx/searx synced 2025-08-31 14:38:23 +00:00

Merge pull request #2363 from dalf/fix-wikipedia-minor

[fix] wikipedia: minor fix: return no result instead of crash in some very few cases.
This commit is contained in:
Alexandre Flament
2020-12-07 18:33:37 +01:00
committed by GitHub

View File

@@ -52,7 +52,7 @@ def response(resp):
api_result = loads(resp.text)
# skip disambiguation pages
if api_result['type'] != 'standard':
if api_result.get('type') != 'standard':
return []
title = api_result['title']