add handler for org.freedesktop.DBus.Error.AccessDenied in ble 3

This commit is contained in:
matt committed 2026-10-15 07:45:50 -07:00
1 parent 6ea4f24d84
commit 09f67ab310
1 file changed
+1 -1
+1 -1
View File
@@ -209,7 +209,7 @@ def sensor_data_query(mac_list: List[str]) -> List[dict]:
except Exception as e:
print(f"Error reading BLE data - {e}")
this_result = None
if "org.freedesktop.DBus.Error.AccessDenied" in e and e:
if e and "org.freedesktop.DBus.Error.AccessDenied" in e:
return result
if this_result:
result.append(