From d15c057c4fdef21c43919692bea627e974d3b618 Mon Sep 17 00:00:00 2001 From: TeTeHacko Date: Sat, 14 Nov 2026 02:21:19 +0100 Subject: [PATCH] power_ab.py: age bound before the retry loop (pyright) Co-Authored-By: Claude Opus 5.5 --- tools/power_ab.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/power_ab.py b/tools/power_ab.py index 491daee3..65516ee6 100755 --- a/tools/power_ab.py +++ b/tools/power_ab.py @@ -63,6 +63,7 @@ def cbprom_sample(url, meter, device): # The box drops the meter for half a minute now and then (it killed a cell # 25 min in on 14. 11. 2026). A gap only thins the fitted series, so wait it # out; a feed that stays stale for minutes is a dead one. + age = 0.0 for attempt in range(25): with urllib.request.urlopen(url, timeout=10) as r: body = r.read().decode()