review-fix(suppress-audit): patch_parser/skills_sync/update_cmd_fleet/api_server — restore BASE exception semantics

This commit is contained in:
Teknium
2026-09-03 09:56:39 -07:00
parent c65aebccf0
commit 474eed838e
4 changed files with 21 additions and 11 deletions
+2 -1
View File
@@ -33,8 +33,9 @@ _LIST_GATEWAY_UNITS = ["list-units", "hermes-gateway*", "hermes-serve*", "--plai
def _write_gateway_update_exit_code(ok: bool) -> None:
from hermes_cli.update_cmd import get_hermes_home
path = get_hermes_home() / ".update_exit_code"
with suppress(OSError):
(get_hermes_home() / ".update_exit_code").write_text("0" if ok else "1", encoding="utf-8")
path.write_text("0" if ok else "1", encoding="utf-8")
def _fleet_restart_pending_marker_path() -> Path: