aboutsummaryrefslogtreecommitdiff
path: root/parrot_zik
diff options
context:
space:
mode:
authorneodarz <neodarz@neodarz.net>2019-05-10 22:47:11 +0200
committerneodarz <neodarz@neodarz.net>2019-05-10 22:47:11 +0200
commitc033a187bf02a1419248ea85fd6e09d8d2f95bfd (patch)
tree184750b5ef4c9edaca8a9e872b15c2b3807b2905 /parrot_zik
parentdec49f55a15622b5489ba06ad7492796c7d65672 (diff)
downloadpyParrotZikTCP-c033a187bf02a1419248ea85fd6e09d8d2f95bfd.tar.xz
pyParrotZikTCP-c033a187bf02a1419248ea85fd6e09d8d2f95bfd.zip
Add dbus exception
Diffstat (limited to 'parrot_zik')
-rw-r--r--parrot_zik/bluetooth_paired_devices.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/parrot_zik/bluetooth_paired_devices.py b/parrot_zik/bluetooth_paired_devices.py
index 1618366..6ef36ab 100644
--- a/parrot_zik/bluetooth_paired_devices.py
+++ b/parrot_zik/bluetooth_paired_devices.py
@@ -93,6 +93,8 @@ def get_parrot_zik_mac_linux():
return bluez_manager.get_mac()
else:
raise BluetoothIsNotOn
+ except dbus.exceptions.DBusException:
+ raise BluetoothIsNotOn
except OSError as e:
if e.errno == 2:
bluetoothcmd_manager = BluetoothCmdDeviceManager()