From 908111ab6825e2a34fdb0732d1741b2686183477 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Wed, 17 Jul 2024 20:07:17 +0200 Subject: [PATCH] Continued: - skip unset software (None) --- fba/commands.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fba/commands.py b/fba/commands.py index 646a60e..b33145a 100644 --- a/fba/commands.py +++ b/fba/commands.py @@ -317,6 +317,9 @@ def fetch_blocks(args: argparse.Namespace) -> int: elif not args.force and instances.is_recent(blocker, "last_blocked"): logger.debug("blocker='%s' has recently been crawled - SKIPPED!", blocker) continue + elif software is None: + logger.warning("blocker='%s' has no software set - SKIPPED!", blocker) + continue logger.debug("Setting last_blocked,has_obfuscation=false for blocker='%s' ...", blocker) instances.set_last_blocked(blocker) -- 2.39.5