From bef2f2efa8fe20bb40c9e79d91c2d9b42f33854a Mon Sep 17 00:00:00 2001 From: Alexandre Flament Date: Fri, 4 Dec 2020 17:17:20 +0100 Subject: [PATCH] [fix] wikidata: fix crash when the item has no description at all and at least one URL. --- searx/engines/wikidata.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/searx/engines/wikidata.py b/searx/engines/wikidata.py index 539ce5ad..60d0dc9a 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