diff --git a/AUTHORS b/AUTHORS index cfa052bb..b3d0fe4d 100644 --- a/AUTHORS +++ b/AUTHORS @@ -54,3 +54,5 @@ Chris Smowton Scott Spillers The original Icon set +Florent Peyraud + Pypad fix diff --git a/ChangeLog b/ChangeLog index cee567ac..d40a0002 100644 --- a/ChangeLog +++ b/ChangeLog @@ -23849,3 +23849,5 @@ 2022-12-22 Fred Gleason * Documented the '--check-log-line-ids' option in the rddbmgr(8) man page. +2022-12-23 Florent Peyraud + * Fix pypad lib which crashed when ProcessNullUpdates!=0 in conffile diff --git a/apis/pypad/api/pypad.py b/apis/pypad/api/pypad.py index f5a6f16c..67e76263 100644 --- a/apis/pypad/api/pypad.py +++ b/apis/pypad/api/pypad.py @@ -725,11 +725,11 @@ class Update(object): if self.__config.get(section,'ProcessNullUpdates')=='0': result=result and True if self.__config.get(section,'ProcessNullUpdates')=='1': - result=result and self.hasPadType(pypad.TYPE_NOW) + result=result and self.hasPadType(TYPE_NOW) if self.__config.get(section,'ProcessNullUpdates')=='2': - result=result and self.hasPadType(pypad.TYPE_NEXT) + result=result and self.hasPadType(TYPE_NEXT) if self.__config.get(section,'ProcessNullUpdates')=='3': - result=result and self.hasPadType(pypad.TYPE_NOW) and self.hasPadType(pypad.TYPE_NEXT) + result=result and self.hasPadType(TYPE_NOW) and self.hasPadType(TYPE_NEXT) else: result=result and True