Skip to content

Commit db7fcbf

Browse files
authored
Merge pull request #122 from Jayy001/Eeems-patch-2
Fix getting machine name when running on device
2 parents c07b7d5 + 9523e56 commit db7fcbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

codexctl/device.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def __init__(
4949
else:
5050
try:
5151
with open("/sys/devices/soc0/machine") as file:
52-
machine_contents = file.read().decode("utf-8").strip("\n")
52+
machine_contents = file.read().strip("\n")
5353
except FileNotFoundError:
5454
machine_contents = "tests"
5555

0 commit comments

Comments
 (0)