summaryrefslogtreecommitdiff
path: root/searxng_extra/update/update_ahmia_blacklist.py
diff options
context:
space:
mode:
Diffstat (limited to 'searxng_extra/update/update_ahmia_blacklist.py')
-rwxr-xr-xsearxng_extra/update/update_ahmia_blacklist.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/searxng_extra/update/update_ahmia_blacklist.py b/searxng_extra/update/update_ahmia_blacklist.py
index 26c485195..a11413f14 100755
--- a/searxng_extra/update/update_ahmia_blacklist.py
+++ b/searxng_extra/update/update_ahmia_blacklist.py
@@ -9,6 +9,7 @@ Output file: :origin:`searx/data/ahmia_blacklist.txt` (:origin:`CI Update data
.. _Ahmia's blacklist: https://ahmia.fi/blacklist/
"""
+# pylint: disable=use-dict-literal
from os.path import join
@@ -21,6 +22,7 @@ URL = 'https://ahmia.fi/blacklist/banned/'
def fetch_ahmia_blacklist():
resp = requests.get(URL, timeout=3.0)
if resp.status_code != 200:
+ # pylint: disable=broad-exception-raised
raise Exception("Error fetching Ahmia blacklist, HTTP code " + resp.status_code)
return resp.text.split()