From f65ce0c1c7cd853c7b0114905eef77c1a91d1d55 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Fri, 11 Mar 2022 13:39:08 +0100 Subject: [PATCH] message erreur si semset deja detruit --- app/scodoc/sco_semset.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/scodoc/sco_semset.py b/app/scodoc/sco_semset.py index a91e8788..10c06c9e 100644 --- a/app/scodoc/sco_semset.py +++ b/app/scodoc/sco_semset.py @@ -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"]