diff options
author | Alexandre Flament <alex@al-f.net> | 2020-12-04 18:07:24 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-04 18:07:24 +0100 |
commit | d9494283ccf122ea9791a5afeedb09890c908493 (patch) | |
tree | 1aa6a68dc088eb2cf687115ea750ff748163d0ec | |
parent | f56e78ee804ba7e46ffed000dbcf0b9f3b2f7ecc (diff) | |
parent | bef2f2efa8fe20bb40c9e79d91c2d9b42f33854a (diff) | |
download | searxng-d9494283ccf122ea9791a5afeedb09890c908493.tar.gz searxng-d9494283ccf122ea9791a5afeedb09890c908493.zip |
Merge pull request #2353 from dalf/fix-wikidata
[fix] wikidata: fix crash when the item has no description at all and…
-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 |