We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 351515c commit e09ae6bCopy full SHA for e09ae6b
1 file changed
sw/wulpus/interface_direct.py
@@ -52,8 +52,8 @@ async def get_available(self) -> List[ConnectionOption]:
52
d.name), "type": ConnectionType.BLE}
53
for d in self._devices
54
]
55
- except OSError:
56
- print("OSError during Bluetooth discovery - Adapter probably disabled")
+ except (OSError, BleakError):
+ print("Error during Bluetooth discovery - Adapter probably disabled")
57
return []
58
59
async def connect(self, device: Optional[ListPortInfo] = None, device_str: Optional[str] = None) -> bool:
0 commit comments