diff options
author | Markus Heiser <markus.heiser@darmarit.de> | 2023-02-10 13:40:12 +0100 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarit.de> | 2023-02-10 13:59:21 +0100 |
commit | 4c06837a5047a5d3a7ae9bd5ec9fb38f86eb5268 (patch) | |
tree | 81ff97768f1a4daf81618d52e9a15e500c992651 /searxng_extra/update/update_ahmia_blacklist.py | |
parent | 7320b0c796f2e9c297da67be5555acc90d1ee0d9 (diff) | |
download | searxng-4c06837a5047a5d3a7ae9bd5ec9fb38f86eb5268.tar.gz searxng-4c06837a5047a5d3a7ae9bd5ec9fb38f86eb5268.zip |
[mod] make python code pylint 2.16.1 compliant
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'searxng_extra/update/update_ahmia_blacklist.py')
-rwxr-xr-x | searxng_extra/update/update_ahmia_blacklist.py | 2 |
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() |