1
0
mirror of https://github.com/searxng/searxng.git synced 2024-11-23 04:27:46 +01:00

Merge pull request #2353 from dalf/fix-wikidata

[fix] wikidata: fix crash when the item has no description at all and…
This commit is contained in:
Alexandre Flament 2020-12-04 18:07:24 +01:00 committed by GitHub
commit d9494283cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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