]> git.mxchange.org Git - fba.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Fri, 1 Dec 2023 18:52:53 +0000 (19:52 +0100)
committerRoland Häder <roland@mxchange.org>
Fri, 1 Dec 2023 18:53:27 +0000 (19:53 +0100)
- check row[software] if not None, then if it is a relay

fba/commands.py

index a663873e60cf7747951b4881d5d2cb5b676dfc71..c7361ed81940dd45685ccf34103e5f5ab53119e0 100644 (file)
@@ -1308,7 +1308,7 @@ def recheck_obfuscation(args: argparse.Namespace) -> int:
 
         # c.s isn't part of oliphant's "hidden" blocklists
         logger.debug("row[domain]='%s'", row["domain"])
-        if row["domain"] != "chaos.social" and not software_helper.is_relay(row["software"]) and not blocklists.has(row["domain"]):
+        if row["domain"] != "chaos.social" and row["software"] is not None and not software_helper.is_relay(row["software"]) and not blocklists.has(row["domain"]):
             logger.debug("Invoking instances.set_total_blocks(%s, %d) ...", row["domain"], len(blocking))
             instances.set_last_blocked(row["domain"])
             instances.set_total_blocks(row["domain"], blocking)