summaryrefslogtreecommitdiff
path: root/searx/engines
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2019-11-28 20:38:29 +0100
committerMarkus Heiser <markus.heiser@darmarit.de>2019-11-28 20:38:29 +0100
commit147f40c386f9427ddf6038fe86ba601c98f77dcd (patch)
tree6932f847c57c250443bd5ac0aef2143e19eb1eb0 /searx/engines
parent62a4b7443fab7ea5d9deaa11b8ea06f0bdb26069 (diff)
parent8721be2f7d37b314b2ce01c29b3fbd6dc03aa3aa (diff)
Merge branch 'master' of https://github.com/asciimoo/searx into boilerplate
Diffstat (limited to 'searx/engines')
-rw-r--r--searx/engines/framalibre.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/searx/engines/framalibre.py b/searx/engines/framalibre.py
index 146cdaeec..f3441fa5f 100644
--- a/searx/engines/framalibre.py
+++ b/searx/engines/framalibre.py
@@ -10,7 +10,10 @@
@parse url, title, content, thumbnail, img_src
"""
-from cgi import escape
+try:
+ from cgi import escape
+except:
+ from html import escape
from lxml import html
from searx.engines.xpath import extract_text
from searx.url_utils import urljoin, urlencode