add handler for org.freedesktop.DBus.Error.AccessDenied in ble 4
This commit is contained in:
1 parent
09f67ab310
commit
97653a61ea
1 file changed
+1
-1
+1
-1
@@ -209,7 +209,7 @@ def sensor_data_query(mac_list: List[str]) -> List[dict]:
|
|||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(f"Error reading BLE data - {e}")
|
print(f"Error reading BLE data - {e}")
|
||||||
this_result = None
|
this_result = None
|
||||||
if e and "org.freedesktop.DBus.Error.AccessDenied" in e:
|
if "org.freedesktop.DBus.Error.AccessDenied" in e:
|
||||||
return result
|
return result
|
||||||
if this_result:
|
if this_result:
|
||||||
result.append(
|
result.append(
|
||||||
|
|||||||
Reference in new issue
Block a user