forked from ScoDoc/DocScoDoc
setGroups: ignore groupes invalides
This commit is contained in:
parent
d64ecdffcb
commit
4993dc4df3
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user