power_ab.py: age bound before the retry loop (pyright)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
ec55b7e8c3
commit
d15c057c4f
1 file changed
+1
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user