diff options
Diffstat (limited to '')
-rw-r--r-- | parrot_zik/bluetooth_paired_devices.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/parrot_zik/bluetooth_paired_devices.py b/parrot_zik/bluetooth_paired_devices.py index 5f5d443..626c5e6 100644 --- a/parrot_zik/bluetooth_paired_devices.py +++ b/parrot_zik/bluetooth_paired_devices.py @@ -59,7 +59,7 @@ class BluetoothCmdDeviceManager(BluetoothDeviceManager): def get_mac(self): pipe = Popen(['bluetoothctl'], stdout=PIPE, stdin=PIPE, stderr=STDOUT) - res = pipe.communicate("exit") + res = str(pipe.communicate("exit".encode("UTF-8"))) if len(res) > 0 and res[0]: match = p.search(res[0]) if match: |