accessdenied error still a problem, shortening match

This commit is contained in:
matt committed 2026-10-21 03:39:25 -07:00
1 parent 947a6d61a4
commit 671c10f4f8
1 file changed
+1 -1
+1 -1
View File
@@ -105,7 +105,7 @@ async def _discover_device(mac: str) -> Optional[str]:
except Exception as e: except Exception as e:
log.error(f"Dicvoere call failed - {e}") log.error(f"Dicvoere call failed - {e}")
reset_adapter() reset_adapter()
if "org.freedesktop.DBus.Error.AccessDenied" in e: if "AccessDenied" in e:
restart_bt_service() restart_bt_service()
return None return None