From c033a187bf02a1419248ea85fd6e09d8d2f95bfd Mon Sep 17 00:00:00 2001 From: neodarz Date: Fri, 10 May 2019 22:47:11 +0200 Subject: Add dbus exception --- parrot_zik/bluetooth_paired_devices.py | 2 ++ 1 file changed, 2 insertions(+) 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() -- cgit v1.2.1