From 72f70b2083fa97187f816f7589428277fd661c8a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Tue, 3 Oct 2023 21:04:09 +0200 Subject: [PATCH] Continued: - local variable 'block' was defined only within the loop, not outside of it - I actually have to use local variable 'blocker' instead --- fba/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fba/commands.py b/fba/commands.py index ea96bf8..5589af7 100644 --- a/fba/commands.py +++ b/fba/commands.py @@ -443,7 +443,7 @@ def fetch_blocks(args: argparse.Namespace) -> int: logger.debug("Invoking cookies.clear(%s) ...", block["blocked"]) cookies.clear(block["blocked"]) - logger.info("blocker='%s' has %d obfuscated domain(s) and %d of them could be deobfuscated.", block["blocker"], obfuscated, deobfuscated) + logger.info("blocker='%s' has %d obfuscated domain(s) and %d of them could be deobfuscated.", blocker, obfuscated, deobfuscated) logger.debug("Checking if blocker='%s' has pending updates ...", blocker) if instances.has_pending(blocker): -- 2.39.5