Skip to content

The agent that grows with you

fix(desktop): read the close-holders consent BOM-tolerantly

Tekniumbbe60403c1da
diff --git a/hermes_cli/desktop_release_holders.py b/hermes_cli/desktop_release_holders.py
index 083f558867f..b891b14cc98 100644
--- a/hermes_cli/desktop_release_holders.py
+++ b/hermes_cli/desktop_release_holders.py
@@ -105,7 +105,7 @@ def take_consent(release_dir: Path, *, now: Callable[[], float] = time.time) ->
"""The program paths the user agreed to close for this one retry; the file is consumed."""
path = release_dir / CONSENT_FILE_NAME
try:
- raw = path.read_text(encoding="utf-8")
+ raw = path.read_text(encoding="utf-8-sig")
except OSError:
return frozenset()
with contextlib.suppress(OSError):