From 4ea70c7b3bef6b658aadfe4151ad964ce405117b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sat, 22 Jul 2023 09:30:06 +0200 Subject: [PATCH] Continued: - skip already blocked domains by any oliphant members --- fba/commands.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fba/commands.py b/fba/commands.py index 345434f..50700c8 100644 --- a/fba/commands.py +++ b/fba/commands.py @@ -1089,6 +1089,9 @@ def fetch_oliphant(args: argparse.Namespace) -> int: elif blacklist.is_blacklisted(domain): logger.warning("domain='%s' is blacklisted - SKIPPED!", domain) continue + elif blocks.is_instance_blocked(block["blocker"], domain, severity): + logger.debug("block[blocker]='%s' has already blocked domain='%s' with severity='%s' - SKIPPED!", block["blocker"], domain, severity) + continue logger.debug("Marking domain='%s' as handled", domain) domains.append(domain) -- 2.39.5