diff --git a/searx/engines/yahoo.py b/searx/engines/yahoo.py index 6bf1932e4..c13ce6d78 100644 --- a/searx/engines/yahoo.py +++ b/searx/engines/yahoo.py @@ -142,8 +142,7 @@ def response(resp): title = extract_text(title)[offset:] content = eval_xpath_getindex(result, './/div[contains(@class, "compText")]', 0, default='') - if content: - content = extract_text(content) + content = extract_text(content, allow_none=True) # append result results.append({'url': url, 'title': title, 'content': content})