Fix session manager initialization order
Moved session manager initialization to after upload folder configuration to prevent TypeError when accessing UPLOAD_FOLDER config value. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
eb4f5752ee
commit
30edf8d272
4
app.py
4
app.py
@ -62,7 +62,6 @@ app = Flask(__name__)
|
||||
# Initialize configuration and secrets management
|
||||
init_config(app)
|
||||
init_secrets(app)
|
||||
init_session_manager(app)
|
||||
|
||||
# Configure CORS with security best practices
|
||||
cors_config = {
|
||||
@ -108,6 +107,9 @@ except Exception as e:
|
||||
|
||||
app.config['UPLOAD_FOLDER'] = upload_folder
|
||||
|
||||
# Initialize session management after upload folder is configured
|
||||
init_session_manager(app)
|
||||
|
||||
# TTS configuration is already loaded from config.py
|
||||
# Warn if TTS API key is not set
|
||||
if not app.config.get('TTS_API_KEY'):
|
||||
|
Loading…
Reference in New Issue
Block a user