mirror of
https://github.com/ChuckBuilds/LEDMatrix.git
synced 2026-06-19 11:08:39 +00:00
Compare commits
1 Commits
13eaabfcd5
...
fix/web-ui
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0d23cd90dc |
@@ -1039,12 +1039,10 @@ def save_main_config():
|
|||||||
|
|
||||||
return success_response(message='Configuration saved successfully')
|
return success_response(message='Configuration saved successfully')
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
import logging
|
|
||||||
logger.error("Error saving config", exc_info=True)
|
logger.error("Error saving config", exc_info=True)
|
||||||
return error_response(
|
return error_response(
|
||||||
ErrorCode.CONFIG_SAVE_FAILED,
|
ErrorCode.CONFIG_SAVE_FAILED,
|
||||||
f"Error saving configuration: {e}",
|
"An error occurred; see logs for details",
|
||||||
|
|
||||||
status_code=500
|
status_code=500
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -219,7 +219,7 @@ def _load_plugins_partial():
|
|||||||
plugin_info.update(fresh_manifest)
|
plugin_info.update(fresh_manifest)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
# If we can't read the fresh manifest, use the cached one
|
# If we can't read the fresh manifest, use the cached one
|
||||||
logger.warning("Could not read fresh manifest for {plugin_id}")
|
logger.warning("Could not read fresh manifest for plugin: %s", plugin_id)
|
||||||
|
|
||||||
# Get enabled status from config (source of truth)
|
# Get enabled status from config (source of truth)
|
||||||
# Read from config file first, fall back to plugin instance if config doesn't have the key
|
# Read from config file first, fall back to plugin instance if config doesn't have the key
|
||||||
|
|||||||
Reference in New Issue
Block a user