1
0
forked from ScoDoc/ScoDoc

message erreur si semset deja detruit

This commit is contained in:
Emmanuel Viennet 2022-03-11 13:39:08 +01:00
parent f61a528d12
commit f65ce0c1c7

View File

@ -89,7 +89,7 @@ class SemSet(dict):
if semset_id: # read existing set
L = semset_list(cnx, args={"semset_id": semset_id})
if not L:
raise ValueError("invalid semset_id %s" % semset_id)
raise ScoValueError(f"Ensemble inexistant ! (semset {semset_id})")
self["title"] = L[0]["title"]
self["annee_scolaire"] = L[0]["annee_scolaire"]
self["sem_id"] = L[0]["sem_id"]