We would crash with an unbound variable error, instead of the right
error message.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
for i in ugs.split():
if self.group==i: ok=1
if not ok:
for i in ugs.split():
if self.group==i: ok=1
if not ok:
- print("caller not in group %s"%group)
+ print("caller not in group %s"%self.group.groupname())
sys.exit(1)
def check_group(self,group,w):
if group!=self.group: complain("Incorrect group!")
sys.exit(1)
def check_group(self,group,w):
if group!=self.group: complain("Incorrect group!")