diff options
author | Alexandre Flament <alex@al-f.net> | 2020-12-07 18:33:37 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-07 18:33:37 +0100 |
commit | 923bc02c17a657fbcd332c7b6f2655176a34fd43 (patch) | |
tree | 5db0affa32647f830da6730f5747604787020191 | |
parent | a458451d20bf45baf62d79a1e4ea2151e176f1d4 (diff) | |
parent | 58d51e082d9434496aebef8792ed58b62bc31707 (diff) | |
download | searxng-923bc02c17a657fbcd332c7b6f2655176a34fd43.tar.gz searxng-923bc02c17a657fbcd332c7b6f2655176a34fd43.zip |
Merge pull request #2363 from dalf/fix-wikipedia-minor
[fix] wikipedia: minor fix: return no result instead of crash in some very few cases.
-rw-r--r-- | searx/engines/wikipedia.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/engines/wikipedia.py b/searx/engines/wikipedia.py index 9fce170eb..000e1af76 100644 --- a/searx/engines/wikipedia.py +++ b/searx/engines/wikipedia.py @@ -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'] |