setGroups: ignore groupes invalides

This commit is contained in:
Emmanuel Viennet 2022-01-21 18:46:00 +01:00
parent d64ecdffcb
commit 4993dc4df3

View File

@ -690,7 +690,8 @@ def setGroups(
try:
group_id = int(group_id)
except ValueError as exc:
raise ValueError("invalid group_id: not an integer")
log("setGroups: ignoring invalid group_id={group_id}")
continue
group = get_group(group_id)
# Anciens membres du groupe:
old_members = get_group_members(group_id)