This commit is contained in:
Emmanuel Viennet 2023-07-09 21:57:50 +02:00
parent 8b37f661d6
commit dba48f32eb

View File

@ -745,7 +745,7 @@ def setGroups(
except ValueError:
log(f"setGroups: ignoring invalid group_id={group_id}")
continue
group: GroupDescr = GroupDescr.query.get(group_id)
group: GroupDescr = GroupDescr.query.get_or_404(group_id)
# Anciens membres du groupe:
old_members_set = {etud.id for etud in group.etuds}
# Place dans ce groupe les etudiants indiqués: