From f576db0d88f476150ca2df380cda860f663d15dd Mon Sep 17 00:00:00 2001 From: koko210Serve Date: Sat, 10 Jan 2026 21:05:46 +0200 Subject: [PATCH] fix: Remove duplicate json import causing runtime error - Removed local 'import json' statement inside get_servers() function - This was shadowing the module-level import and causing 'cannot access local variable' error - json is already imported at the top of the file (line 44) --- bot/api.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/bot/api.py b/bot/api.py index d336ffb..17ed422 100644 --- a/bot/api.py +++ b/bot/api.py @@ -1326,10 +1326,6 @@ def get_servers(): logger.debug(f"Returning {len(servers)} servers") - # Debug: Show exact JSON being sent - import json - response_data = {"servers": servers} - return {"servers": servers} @app.post("/servers")