From 82d39dfad1d7923888dc7cfba73b08c7f167837a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Fri, 1 Dec 2023 19:52:53 +0100 Subject: [PATCH] Continued: - check row[software] if not None, then if it is a relay --- fba/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fba/commands.py b/fba/commands.py index a663873..c7361ed 100644 --- a/fba/commands.py +++ b/fba/commands.py @@ -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) -- 2.39.2