From 09f67ab31090ba34b0d3a363196a1bfb8a370bd1 Mon Sep 17 00:00:00 2001 From: matt Date: Thu, 15 Oct 2026 07:45:50 -0700 Subject: [PATCH] add handler for org.freedesktop.DBus.Error.AccessDenied in ble 3 --- api/ble.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/ble.py b/api/ble.py index 3ef8055..068f00a 100644 --- a/api/ble.py +++ b/api/ble.py @@ -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(