ble.py - add history try block

This commit is contained in:
matt committed 2026-10-18 05:19:23 -07:00
1 parent 2469338298
commit eb1ec71499
1 file changed
+3
+3
View File
@@ -296,6 +296,7 @@ def test(test_count = 0, bt_usb_id = None) -> None:
print("Done")
prev_list_snapshot = None
print("Just before the loop")
try:
while not test_result:
# Check if the failed list has been the same for 5 loops
print("Check if the failed list has been the same for 5 loops")
@@ -313,6 +314,8 @@ def test(test_count = 0, bt_usb_id = None) -> None:
reset_adapter()
mac_history = []
prev_list_snapshot = current_list
except Exception as e:
log.error(f"Something went wrong in the history loop - {e}")
log.info(f" Test run: {test_count} - loop {test_loop_count} start. Initializing run...")
test_run_results = sensor_data_query(test_list)