From 4993dc4df3bff05c2038b270a6c2e4f2a0e29d98 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Fri, 21 Jan 2022 18:46:00 +0100 Subject: [PATCH] setGroups: ignore groupes invalides --- app/scodoc/sco_groups.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/scodoc/sco_groups.py b/app/scodoc/sco_groups.py index b06a8e469..e14ae5266 100644 --- a/app/scodoc/sco_groups.py +++ b/app/scodoc/sco_groups.py @@ -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)