Merge branch 'master' of github.com:tobi-wan-kenobi/bumblebee-status

This commit is contained in:
Tobias Witek 2017-09-07 05:12:06 +02:00
commit a9ae3c5ed4

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: