[modules/bluetooth] Add more error checking

Do not kill the bar when the dbus-send command fails.

see #818
This commit is contained in:
tobi-wan-kenobi 2021-09-10 12:45:11 +02:00
parent 9c463fc2b7
commit ed5a4e61e4
2 changed files with 2 additions and 2 deletions

View file

@ -106,7 +106,7 @@ class Module(core.module.Module):
)
logging.debug("bt: toggling bluetooth")
util.cli.execute(cmd)
util.cli.execute(cmd, ignore_errors=True)
def state(self, widget):
"""Get current state."""

View file

@ -69,7 +69,7 @@ class Module(core.module.Module):
)
logging.debug("bt: toggling bluetooth")
util.cli.execute(cmd)
util.cli.execute(cmd, ignore_errors=True)
def state(self, widget):
"""Get current state."""