mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-24 16:54:43 +00:00
fix(computer_use): add explicit encoding to /proc/version open()
This commit is contained in:
parent
8d4f7a0002
commit
f7a6c7a6e5
1 changed files with 1 additions and 1 deletions
|
|
@ -199,7 +199,7 @@ def _cua_no_overlay() -> bool:
|
|||
if not os.environ.get("DISPLAY"):
|
||||
return True
|
||||
try:
|
||||
with open("/proc/version") as f:
|
||||
with open("/proc/version", encoding="utf-8") as f:
|
||||
if "microsoft" in f.read().lower():
|
||||
return True
|
||||
except Exception:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue