diff options
author | Alexandre Flament <alex@al-f.net> | 2020-12-04 17:17:20 +0100 |
---|---|---|
committer | Alexandre Flament <alex@al-f.net> | 2020-12-04 17:17:20 +0100 |
commit | bef2f2efa8fe20bb40c9e79d91c2d9b42f33854a (patch) | |
tree | 1aa6a68dc088eb2cf687115ea750ff748163d0ec /searx/engines | |
parent | f56e78ee804ba7e46ffed000dbcf0b9f3b2f7ecc (diff) | |
download | searxng-bef2f2efa8fe20bb40c9e79d91c2d9b42f33854a.tar.gz searxng-bef2f2efa8fe20bb40c9e79d91c2d9b42f33854a.zip |
[fix] wikidata: fix crash when the item has no description at all and at least one URL.
Diffstat (limited to 'searx/engines')
-rw-r--r-- | searx/engines/wikidata.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/engines/wikidata.py b/searx/engines/wikidata.py index 539ce5ad4..60d0dc9a0 100644 --- a/searx/engines/wikidata.py +++ b/searx/engines/wikidata.py @@ -190,7 +190,7 @@ def get_results(attribute_result, attributes, language): infobox_id_lang = None infobox_urls = [] infobox_attributes = [] - infobox_content = attribute_result.get('itemDescription') + infobox_content = attribute_result.get('itemDescription', []) img_src = None img_src_priority = 100 |