This file sometimes has stupid \x00 inside ~.~

This commit is contained in:
Alexandre Aubin 2020-05-09 22:08:49 +02:00
parent f8154fe23a
commit c346f5f1df

View file

@ -34,7 +34,7 @@ class BaseSystemDiagnoser(Diagnoser):
# Also possibly the board name
if os.path.exists("/proc/device-tree/model"):
model = read_file('/proc/device-tree/model').strip()
model = read_file('/proc/device-tree/model').strip().replace('\x00', '')
hardware["data"]["model"] = model
hardware["details"] = ["diagnosis_basesystem_hardware_board"]