Browse Source

Merge pull request #2353 from dalf/fix-wikidata

[fix] wikidata: fix crash when the item has no description at all and…
Alexandre Flament 4 years ago
parent
commit
d9494283cc
1 changed files with 1 additions and 1 deletions
  1. 1 1
      searx/engines/wikidata.py

+ 1 - 1
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