Spaces:
Building
Building
Update config_provider.py
Browse files- config_provider.py +3 -0
config_provider.py
CHANGED
@@ -173,6 +173,9 @@ class ConfigProvider:
|
|
173 |
"""Thread-safe configuration save with optimistic locking"""
|
174 |
with cls._file_lock:
|
175 |
try:
|
|
|
|
|
|
|
176 |
# Load current config for race condition check
|
177 |
try:
|
178 |
current_config = cls._load()
|
|
|
173 |
"""Thread-safe configuration save with optimistic locking"""
|
174 |
with cls._file_lock:
|
175 |
try:
|
176 |
+
# Convert to dict for JSON serialization
|
177 |
+
config_dict = config.model_dump()
|
178 |
+
|
179 |
# Load current config for race condition check
|
180 |
try:
|
181 |
current_config = cls._load()
|