diff --git a/api/ble.py b/api/ble.py index ca19d33..6424f40 100644 --- a/api/ble.py +++ b/api/ble.py @@ -105,7 +105,7 @@ async def _discover_device(mac: str) -> Optional[str]: except Exception as e: log.error(f"Dicvoere call failed - {e}") reset_adapter() - if "org.freedesktop.DBus.Error.AccessDenied" in e: + if "AccessDenied" in e: restart_bt_service() return None