From: Roland Häder Date: Tue, 1 Oct 2024 19:47:25 +0000 (+0200) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=bc3c63f9d59f787346caa03ea7e65c055a43333c;p=fba.git Continued: - removed redundant code (copy-paste) - added missing local variable declaration --- 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))