Commit 9bddd8f4 authored by Rob Carleski's avatar Rob Carleski 🇮🇸
Browse files

Only try to remove the control group if it's currently a member

parent 7b3a3475
......@@ -285,7 +285,8 @@ https://documentation.its.umich.edu/node/339/
)
if self.service in ['google', 'both']:
mcomm_group.externalMembers.append(_ext_addr)
mcomm_group.memberGroups.remove(_control_group)
if _control_group in mcomm_group.memberGroups:
mcomm_group.memberGroups.remove(_control_group)
mcomm_group.update_membership()
except mcommunity.core.MCommError as e:
self.logger.warning(e, extra={'entity': self.account})
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment