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: