From 0caf2ab0abd44fda487734750645c67a63c32e15 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Sat, 2 Sep 2023 22:54:48 +0200 Subject: [PATCH] =?UTF-8?q?Modifie=20gestion=20erreur=20pour=20suivi=20d?= =?UTF-8?q?=C3=A9bouch=C3=A9s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/scodoc/sco_debouche.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/scodoc/sco_debouche.py b/app/scodoc/sco_debouche.py index 3f83ba75c..09ae1f5a5 100644 --- a/app/scodoc/sco_debouche.py +++ b/app/scodoc/sco_debouche.py @@ -37,7 +37,7 @@ from app.comp.res_compat import NotesTableCompat from app.models import FormSemestre import app.scodoc.sco_utils as scu import app.scodoc.notesdb as ndb -from app.scodoc.sco_exceptions import AccessDenied +from app.scodoc.sco_exceptions import AccessDenied, ScoValueError from app.scodoc.scolog import logdb from app.scodoc.gen_tables import GenTable from app.scodoc import safehtml @@ -259,7 +259,7 @@ def itemsuivi_get(cnx, itemsuivi_id, ignore_errors=False): if items: return items[0] elif not ignore_errors: - raise ValueError("invalid itemsuivi_id") + raise ScoValueError(f"Débouché: item inexistant ({itemsuivi_id})") return None