diff --git a/src/p4p/asLib/__init__.py b/src/p4p/asLib/__init__.py index d5e02174..c7776e85 100644 --- a/src/p4p/asLib/__init__.py +++ b/src/p4p/asLib/__init__.py @@ -166,7 +166,10 @@ def parse(self, acf): self._uag = uag self._hag = hag self._asg = asg - self._asg_DEFAULT = asg.get('DEFAULT', []) + # values of self._asg are (rules, inputs) 2-tuples; the fallback + # must be unpackable the same way (see create()), so an empty ruleset + # is ([], {}) rather than a bare list. + self._asg_DEFAULT = asg.get('DEFAULT', ([], {})) self._hag_addr = hag_addr self._recompute()