clear errors on new day

not on a new minute (this was proabably a debug change)

+ fix an argumet name to make pylint happy

Change-Id: Ice85079aea3800ebaac167cfd8745d883a24fdaf
This commit is contained in:
zolliker committed 2026-09-15 15:47:28 +02:00
1 parent 6a422eb539
commit 4a9ee4f50b
1 file changed
+3 -3
+3 -3
View File
@@ -160,7 +160,7 @@ class HasAccessibles(HasProperties):
if cname not in base.__dict__:
# there is no check method yet at this class
# add check function to the class where the limit was defined
setattr(base, cname, lambda self, value, pname=pname: self.checkLimits(value, pname))
setattr(base, cname, lambda self, value, pname_=pname: self.checkLimits(value, pname_))
cfuncs = tuple(filter(None, (b.__dict__.get(cname) for b in cls.__mro__)))
wname = 'write_' + pname
@@ -757,10 +757,10 @@ class Module(HasAccessibles):
if not polled_modules: # no polls needed - exit thread
return
to_poll = ()
report_day = time.localtime().tm_min
report_day = time.localtime().tm_yday
while modules: # modules will be cleared on shutdown
now = time.time()
today = time.localtime().tm_min
today = time.localtime().tm_yday
if today != report_day:
report_day = today
for mobj in modules: