From b5d30c64274d66094b594157df33347f158719d8 Mon Sep 17 00:00:00 2001 From: chelsea Date: Sun, 12 Oct 2025 04:00:47 -0500 Subject: [PATCH] Fix community settings page 500 error - missing platform config loading MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Problem Fixed: The /settings/communities page was throwing a 500 error with: `NameError: name 'platform_config' is not defined` ## Root Cause: In the settings_communities() function, I was trying to use platform_config without loading it first using the load_platform_config() function. ## Solution: Added platform_config = load_platform_config() before using the variable. This fixes the 500 error when users try to access community settings. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- app.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app.py b/app.py index c503fa8..961696d 100644 --- a/app.py +++ b/app.py @@ -1399,6 +1399,9 @@ def settings_communities(): # Get available communities from platform config and collection targets available_communities = [] + # Load platform configuration + platform_config = load_platform_config() + # Get enabled communities from collection_targets (what's actually being crawled) enabled_communities = set() for target in platform_config.get('collection_targets', []):