forked from ScoDoc/ScoDoc
add 404
This commit is contained in:
parent
8b37f661d6
commit
dba48f32eb
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user