From 0fd881aa4bd5dbcb6b42be45aaf8c3efada42854 Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Sat, 1 Nov 2025 13:12:14 -0700 Subject: [PATCH] cleanup --- modules/system.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/system.py b/modules/system.py index fd74005..9c34588 100644 --- a/modules/system.py +++ b/modules/system.py @@ -1016,8 +1016,7 @@ def api_throttle(node_id, rxInterface=None, channel=None, apiName=""): 'channel': channel } apiThrottleList.append(entry) - request_so_far = next((entry for entry in apiThrottleList if entry['node_id'] == node_id_str), None) - logger.debug(f"System: API Throttle check for Node {node_id} on API {apiName} count: {request_so_far['api_throttle_count']}") + logger.debug(f"System: API Throttle check for Node {node_id} on API {apiName} count: {node_entry['api_throttle_count']}") return False # Not throttled def ban_hammer(node_id, rxInterface=None, channel=None, reason=""):