From 4a9ee4f50b8b474e04e44ac9db96074aa07871ab Mon Sep 17 00:00:00 2001 From: Markus Zolliker Date: Tue, 15 Sep 2026 15:46:33 +0200 Subject: [PATCH] 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 --- frappy/modulebase.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frappy/modulebase.py b/frappy/modulebase.py index 4b17e8ea..e5adfad9 100644 --- a/frappy/modulebase.py +++ b/frappy/modulebase.py @@ -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: