diff options
author | neodarz <neodarz@neodarz.net> | 2019-05-10 22:47:11 +0200 |
---|---|---|
committer | neodarz <neodarz@neodarz.net> | 2019-05-10 22:47:11 +0200 |
commit | c033a187bf02a1419248ea85fd6e09d8d2f95bfd (patch) | |
tree | 184750b5ef4c9edaca8a9e872b15c2b3807b2905 /parrot_zik | |
parent | dec49f55a15622b5489ba06ad7492796c7d65672 (diff) | |
download | pyParrotZikTCP-c033a187bf02a1419248ea85fd6e09d8d2f95bfd.tar.xz pyParrotZikTCP-c033a187bf02a1419248ea85fd6e09d8d2f95bfd.zip |
Add dbus exception
Diffstat (limited to 'parrot_zik')
-rw-r--r-- | parrot_zik/bluetooth_paired_devices.py | 2 |
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() |