Skip to content

SearXNG is a free internet metasearch engine which aggregates results from various search services and databases. Users are neither tracked nor profiled.

[fix] link attrib

asciimoo15a2c27864ee
diff --git a/searx/engines/deviantart.py b/searx/engines/deviantart.py
index c46a19a63..d598507ac 100644
--- a/searx/engines/deviantart.py
+++ b/searx/engines/deviantart.py
@@ -24,6 +24,6 @@ def response(resp):
url = urljoin(base_url, link.attrib.get('href'))
title_links = result.xpath('.//span[@class="details"]//a[contains(@class, "t")]')
title = ''.join(title_links[0].xpath('.//text()'))
- content = html.tostring(link)+'<br />'+link.attrib.get('title')
+ content = html.tostring(link)+'<br />'+link.attrib.get('title', '')
results.append({'url': url, 'title': title, 'content': content})
return results