diff --git a/sysFanTemp.py b/sysFanTemp.py index d680ef3..432a598 100755 --- a/sysFanTemp.py +++ b/sysFanTemp.py @@ -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