setGroups: ignore groupes invalides
This commit is contained in:
parent
d64ecdffcb
commit
4993dc4df3
@ -690,7 +690,8 @@ def setGroups(
|
|||||||
try:
|
try:
|
||||||
group_id = int(group_id)
|
group_id = int(group_id)
|
||||||
except ValueError as exc:
|
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)
|
group = get_group(group_id)
|
||||||
# Anciens membres du groupe:
|
# Anciens membres du groupe:
|
||||||
old_members = get_group_members(group_id)
|
old_members = get_group_members(group_id)
|
||||||
|
Loading…
Reference in New Issue
Block a user