From 97653a61ea72c19218622bd85661bef28e1019ea Mon Sep 17 00:00:00 2001 From: matt Date: Thu, 15 Oct 2026 07:46:37 -0700 Subject: [PATCH] add handler for org.freedesktop.DBus.Error.AccessDenied in ble 4 --- api/ble.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/ble.py b/api/ble.py index 068f00a..7514d52 100644 --- a/api/ble.py +++ b/api/ble.py @@ -209,8 +209,8 @@ 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 e and "org.freedesktop.DBus.Error.AccessDenied" in e: - return result + if "org.freedesktop.DBus.Error.AccessDenied" in e: + return result if this_result: result.append( {"name": mac, "temp": this_result.temperature, "humidity": this_result.humidity}