Message d'erreur si upload notes xls avec etudid invalide
This commit is contained in:
parent
4993dc4df3
commit
7c89b9a8d3
@ -153,7 +153,10 @@ def _check_notes(notes, evaluation, mod):
|
|||||||
|
|
||||||
for (etudid, note) in notes:
|
for (etudid, note) in notes:
|
||||||
note = str(note).strip().upper()
|
note = str(note).strip().upper()
|
||||||
etudid = int(etudid) #
|
try:
|
||||||
|
etudid = int(etudid) #
|
||||||
|
except ValueError as exc:
|
||||||
|
raise ScoValueError(f"Code étudiant ({etudid}) invalide")
|
||||||
if note[:3] == "DEM":
|
if note[:3] == "DEM":
|
||||||
continue # skip !
|
continue # skip !
|
||||||
if note:
|
if note:
|
||||||
|
Loading…
Reference in New Issue
Block a user