Fix possible error
This commit is contained in:
@@ -37,8 +37,9 @@ def main():
|
||||
|
||||
## HDD temp on right
|
||||
hddTempString = ""
|
||||
print(hddtempDict)
|
||||
for hddname in sorted(hddtempDict.keys()):
|
||||
temp = hddtempDict[hddname]["temp"]
|
||||
temp = hddtempDict[hddname].get("temp", -999.9)
|
||||
hddTempString += f"{hddname}: {temp}°C\n"
|
||||
p = Panel(hddTempString, title="HDD Temperature")
|
||||
p.height = 15
|
||||
|
||||
Reference in New Issue
Block a user