From: Roland Häder Date: Wed, 17 Jul 2024 18:07:17 +0000 (+0200) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=908111ab6825e2a34fdb0732d1741b2686183477;p=fba.git Continued: - skip unset software (None) --- 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)