Merge branch 'master' of github.com:tobi-wan-kenobi/bumblebee-status
This commit is contained in:
commit
a9ae3c5ed4
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