From: Roland Häder Date: Sat, 22 Jul 2023 07:30:06 +0000 (+0200) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4ea70c7b3bef6b658aadfe4151ad964ce405117b;p=fba.git Continued: - skip already blocked domains by any oliphant members --- 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)