mirror of
https://github.com/searx/searx
synced 2025-08-30 14:08:47 +00:00
[fix] wikidata: fix crash when the item has no description at all and at least one URL.
This commit is contained in:
@@ -190,7 +190,7 @@ def get_results(attribute_result, attributes, language):
|
|||||||
infobox_id_lang = None
|
infobox_id_lang = None
|
||||||
infobox_urls = []
|
infobox_urls = []
|
||||||
infobox_attributes = []
|
infobox_attributes = []
|
||||||
infobox_content = attribute_result.get('itemDescription')
|
infobox_content = attribute_result.get('itemDescription', [])
|
||||||
img_src = None
|
img_src = None
|
||||||
img_src_priority = 100
|
img_src_priority = 100
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user