The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(config): catch only manifest read/parse errors in config_keys scan
Tekniumfb8b9bf4b0a3
diff --git a/hermes_cli/config_runtime_keys.py b/hermes_cli/config_runtime_keys.pyindex 73860698d8a..23e52aa8cea 100644--- a/hermes_cli/config_runtime_keys.py+++ b/hermes_cli/config_runtime_keys.py@@ -18,6 +18,7 @@ import loggingfrom functools import lru_cachefrom pathlib import Path+import hermes_yaml as yamlfrom utils import fast_safe_loadlogger = logging.getLogger(__name__)@@ -30,7 +31,7 @@ def _manifest_config_keys(path: Path) -> list[str]:try:text = path.read_text(encoding="utf-8-sig")data = json.loads(text) if path.suffix == ".json" else fast_safe_load(text)- except Exception as exc: # OSError, JSON/YAML parse errors: one bad plugin must not break config get+ except (OSError, ValueError, yaml.YAMLError) as exc: # one bad manifest must not break config getlogger.debug("config_keys: skipping unreadable manifest %s: %s", path, exc)return []raw = data.get("config_keys") if isinstance(data, dict) else None