on master help sign in
Merge pull request #2363 from dalf/fix-wikipedia-minor

[fix] wikipedia: minor fix: return no result instead of crash in some very few cases.

commit923bc02c17a657fbcd332c7b6f2655176a34fd43 authorAlexandre Flament <alex@al-f.net> dateMon 7 Dec 2020, 18:33 (6 years ago) parenta45845158d51e0
1 file changed+1−1
searx/engines/wikipedia.py+1−1
searx/engines/wikipedia.py+1−1
@@ -52,7 +52,7 @@ def response(resp):
5252 api_result = loads(resp.text)
5353
5454 # skip disambiguation pages
55− if api_result['type'] != 'standard':
55+ if api_result.get('type') != 'standard':
5656 return []
5757
5858 title = api_result['title']