This commit is contained in:
david rice
2026-04-08 15:42:51 +01:00
parent 15dc295ae1
commit 017c3b19f0
3 changed files with 95 additions and 36 deletions

View File

@@ -364,11 +364,17 @@ def test_worker():
resume_event.wait() # block here while mgmt_worker is running
if not test_running:
break
requests.put(URL, json={"state": "on"}, timeout=2)
try:
requests.put(URL, json={"state": "on"}, timeout=2)
except requests.exceptions.RequestException as e:
print(f" WARNING: display ON failed: {e}")
time.sleep(DISPLAY_SETTLE_S)
dual_capture(count)
count += 1
requests.put(URL, json={"state": "off"}, timeout=2)
try:
requests.put(URL, json={"state": "off"}, timeout=2)
except requests.exceptions.RequestException as e:
print(f" WARNING: display OFF failed: {e}")
time.sleep(1.0)