forked from ScoDoc/DocScoDoc
message erreur si semset deja detruit
This commit is contained in:
parent
f61a528d12
commit
f65ce0c1c7
@ -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"]
|
||||
|
Loading…
Reference in New Issue
Block a user