Skip to content

The agent that grows with you

fix: suppress windows-footgun false positive on binary tomllib open

Tekniumff7c9511518d
diff --git a/hermes_cli/update_cmd.py b/hermes_cli/update_cmd.py
index 76d69af6c4d..e1df0aa1ae6 100644
--- a/hermes_cli/update_cmd.py
+++ b/hermes_cli/update_cmd.py
@@ -850,7 +850,7 @@ def _read_project_version() -> str | None:
try:
import tomllib
- with open(_m().PROJECT_ROOT / "pyproject.toml", "rb") as fh:
+ with open(_m().PROJECT_ROOT / "pyproject.toml", "rb") as fh: # windows-footgun: ok — binary mode, tomllib requires bytes
version = tomllib.load(fh).get("project", {}).get("version")
return str(version) if version else None
except Exception: