Fix incorrect short-circuit order of add_chidren bail.

This commit is contained in:
voussoir 2020-09-27 19:49:27 -07:00
parent 06340d03da
commit 0eb8fd3f1b

View file

@ -130,7 +130,7 @@ class GroupableMixin(metaclass=abc.ABCMeta):
def add_children(self, members):
bail = True
for member in members:
bail = bail and (self.__add_child(member) is BAIL)
bail = (self.__add_child(member) is BAIL) and bail
if bail:
return BAIL