[modules/bluetooth] Add more error checking
Do not kill the bar when the dbus-send command fails. see #818
This commit is contained in:
parent
9c463fc2b7
commit
ed5a4e61e4
2 changed files with 2 additions and 2 deletions
|
@ -106,7 +106,7 @@ class Module(core.module.Module):
|
||||||
)
|
)
|
||||||
|
|
||||||
logging.debug("bt: toggling bluetooth")
|
logging.debug("bt: toggling bluetooth")
|
||||||
util.cli.execute(cmd)
|
util.cli.execute(cmd, ignore_errors=True)
|
||||||
|
|
||||||
def state(self, widget):
|
def state(self, widget):
|
||||||
"""Get current state."""
|
"""Get current state."""
|
||||||
|
|
|
@ -69,7 +69,7 @@ class Module(core.module.Module):
|
||||||
)
|
)
|
||||||
|
|
||||||
logging.debug("bt: toggling bluetooth")
|
logging.debug("bt: toggling bluetooth")
|
||||||
util.cli.execute(cmd)
|
util.cli.execute(cmd, ignore_errors=True)
|
||||||
|
|
||||||
def state(self, widget):
|
def state(self, widget):
|
||||||
"""Get current state."""
|
"""Get current state."""
|
||||||
|
|
Loading…
Reference in a new issue