From bc3c63f9d59f787346caa03ea7e65c055a43333c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Tue, 1 Oct 2024 21:47:25 +0200 Subject: [PATCH] Continued: - removed redundant code (copy-paste) - added missing local variable declaration --- fba/commands.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/fba/commands.py b/fba/commands.py index 5efea1b..7bb6ef0 100644 --- a/fba/commands.py +++ b/fba/commands.py @@ -1634,6 +1634,7 @@ def fetch_instances_social(args: argparse.Namespace) -> int: locking.acquire() source_domain = "instances.social" + domains = dict() if config.get("instances_social_api_key") == "": logger.error("API key not set. Please set in your config.json file.") @@ -1655,14 +1656,6 @@ def fetch_instances_social(args: argparse.Namespace) -> int: "instances" ) - logger.info("Fetching list from source_domain='%s' ...", source_domain) - rows = network.fetch_json_rows( - domain, - path, - headers, - "instances" - ) - logger.info("Checking %d row(s) ...", len(rows)) for row in rows: logger.debug("row[]='%s'", type(row)) -- 2.39.5