fix: exception occurred when screen is locked
This commit is contained in:
parent
93768e3380
commit
9ab02cb92b
1 changed files with 7 additions and 1 deletions
|
@ -28,7 +28,13 @@ class Module(bumblebee.engine.Module):
|
||||||
return "0%"
|
return "0%"
|
||||||
|
|
||||||
def update(self, widgets):
|
def update(self, widgets):
|
||||||
self._level = bumblebee.util.execute(self._cmdString)
|
level = ""
|
||||||
|
try:
|
||||||
|
level = bumblebee.util.execute(self._cmdString)
|
||||||
|
except Exception as e:
|
||||||
|
level = ""
|
||||||
|
|
||||||
|
self._level = level
|
||||||
|
|
||||||
def state(self, widget):
|
def state(self, widget):
|
||||||
if self._muted:
|
if self._muted:
|
||||||
|
|
Loading…
Reference in a new issue