Merge pull request #162 from zetxx/master

fix: exception occurred when screen is locked
This commit is contained in:
tobi-wan-kenobi 2017-08-21 18:35:20 +02:00 committed by GitHub
commit 811b68c562

View file

@ -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: