fix: exception occurred when screen is locked

This commit is contained in:
Elin Angelov 2017-08-21 10:37:38 +03:00 committed by GitHub
parent 93768e3380
commit 9ab02cb92b

View file

@ -28,7 +28,13 @@ class Module(bumblebee.engine.Module):
return "0%"
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):
if self._muted: