From: Ian Jackson Date: Tue, 10 Mar 2020 18:16:44 +0000 (+0000) Subject: make-secnet-sites: Fix error handling if caller is in wrong group X-Git-Tag: v0.6.1~22 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=147b444d6faa9a621e33d653b7a72c29724203c3;p=secnet.git make-secnet-sites: Fix error handling if caller is in wrong group We would crash with an unbound variable error, instead of the right error message. Signed-off-by: Ian Jackson --- diff --git a/make-secnet-sites b/make-secnet-sites index 70fa7a4..13a6c04 100755 --- a/make-secnet-sites +++ b/make-secnet-sites @@ -369,7 +369,7 @@ class OpUserv(OpBase): 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!")