Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c8be128e authored by Adam Tauber's avatar Adam Tauber
Browse files

[mod] ignore startpage unicode errors

parent 23b4a532
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -66,7 +66,10 @@ def response(resp):
            continue
        link = links[0]
        url = link.attrib.get('href')
        try:
            title = escape(link.text_content())
        except UnicodeDecodeError:
            continue

        # block google-ad url's
        if re.match("^http(s|)://www.google.[a-z]+/aclk.*$", url):