fix(computer_use): add explicit encoding to /proc/version open()
This commit is contained in:
committed by
Brooklyn Nicholson
parent
8d4f7a0002
commit
f7a6c7a6e5
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user