diff --git a/widget/temp.lua b/widget/temp.lua index bafdcdc..f267283 100644 --- a/widget/temp.lua +++ b/widget/temp.lua @@ -32,7 +32,11 @@ local function factory(args) temp_now[t] = temp_value and temp_value/1e3 or temp_fl end end - coretemp_now = string.format(format, temp_now[tempfile]) or "N/A" + if temp_now[tempfile] then + coretemp_now = string.format(format, temp_now[tempfile]) + else + coretemp_now = "N/A" + end widget = temp.widget settings() end)