]> git.mxchange.org Git - fba.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Sat, 22 Jul 2023 07:30:06 +0000 (09:30 +0200)
committerRoland Häder <roland@mxchange.org>
Sat, 22 Jul 2023 07:30:06 +0000 (09:30 +0200)
- skip already blocked domains by any oliphant members

fba/commands.py

index 345434f1403afa8b153d3e9cbbacfb5e8642db0a..50700c806af25140f6b64660729b39e4b0be911b 100644 (file)
@@ -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)