From: BarbUk Date: Tue, 24 Jan 2017 18:45:51 +0000 (+0400) Subject: fix 'attempt to index a nil value (global self)' X-Git-Url: https://git.madduck.net/etc/awesome.git/commitdiff_plain/dd9d9b8076428c4d869043e54b1cd67424020a11?ds=inline fix 'attempt to index a nil value (global self)' --- diff --git a/widgets/contrib/tpbat/init.lua b/widgets/contrib/tpbat/init.lua index 380625f..d96c2d8 100644 --- a/widgets/contrib/tpbat/init.lua +++ b/widgets/contrib/tpbat/init.lua @@ -42,7 +42,7 @@ end function tpbat.show(t_out) tpbat.hide() - local bat = self.bat + local bat = tpbat.bat if bat == nil or not bat:installed() then return end