diff options
Diffstat (limited to 'widgets/temperature.lua')
| -rw-r--r-- | widgets/temperature.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/widgets/temperature.lua b/widgets/temperature.lua index 80f8a92..f3db51c 100644 --- a/widgets/temperature.lua +++ b/widgets/temperature.lua @@ -26,7 +26,7 @@ function linux_auto_get_file() end function linux_update(widget) - local tempf = io.open(widget._private.file) + local tempf = io.open(widget._private.file or "") if tempf then local temp = tempf:read() / 1000 tempf:close() |
