1
0
forked from ScoDoc/ScoDoc

Message d'erreur si upload notes xls avec etudid invalide

This commit is contained in:
Emmanuel Viennet 2022-01-21 22:03:16 +01:00
parent 4993dc4df3
commit 7c89b9a8d3

View File

@ -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()
try:
etudid = int(etudid) # 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: