x2es / bt-dualboot

Sync Bluetooth for dualboot Linux and Windows
366 stars 30 forks source link

TypeError: 'NoneType' object is not subscriptable #27

Open ikhmal2 opened 4 months ago

ikhmal2 commented 4 months ago

This was the command (MOUNT is being replace with the actual path)

Python 3.12 PopOS 22.04 LTS

sudo bt-dualboot --win MOUNT --sync-all -n

Traceback (most recent call last): File "/usr/local/bin/bt-dualboot", line 8, in sys.exit(main()) File "/usr/local/lib/python3.10/dist-packages/bt_dualboot/cli/app.py", line 342, in main app.run() File "/usr/local/lib/python3.10/dist-packages/bt_dualboot/cli/app.py", line 262, in run self.sync_all() File "/usr/local/lib/python3.10/dist-packages/bt_dualboot/cli/app.py", line 228, in sync_all devices_for_push = sync_manager.devices_needs_sync() File "/usr/local/lib/python3.10/dist-packages/bt_dualboot/bt_sync_manager/bt_sync_manager.py", line 129, in devices_needs_sync index = self._index_devices() File "/usr/local/lib/python3.10/dist-packages/bt_dualboot/bt_sync_manager/bt_sync_manager.py", line 61, in _index_devices linux_devices = get_linux_devices() File "/usr/local/lib/python3.10/dist-packages/bt_dualboot/bt_linux/devices.py", line 40, in get_devices return [bluetooth_device_factory(device_path) for device_path in get_devices_paths()] File "/usr/local/lib/python3.10/dist-packages/bt_dualboot/bt_linux/devices.py", line 40, in return [bluetooth_device_factory(device_path) for device_path in get_devices_paths()] File "/usr/local/lib/python3.10/dist-packages/bt_dualboot/bt_linux/bluetooth_device_factory.py", line 60, in bluetooth_device_factory mac=macs["device_mac"], TypeError: 'NoneType' object is not subscriptable