summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2020-12-04 17:17:20 +0100
committerAlexandre Flament <alex@al-f.net>2020-12-04 17:17:20 +0100
commitbef2f2efa8fe20bb40c9e79d91c2d9b42f33854a (patch)
tree1aa6a68dc088eb2cf687115ea750ff748163d0ec
parentf56e78ee804ba7e46ffed000dbcf0b9f3b2f7ecc (diff)
downloadsearxng-bef2f2efa8fe20bb40c9e79d91c2d9b42f33854a.tar.gz
searxng-bef2f2efa8fe20bb40c9e79d91c2d9b42f33854a.zip
[fix] wikidata: fix crash when the item has no description at all and at least one URL.
-rw-r--r--searx/engines/wikidata.py2
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