diff --git a/app/scodoc/sco_debouche.py b/app/scodoc/sco_debouche.py index 3f83ba75c7..09ae1f5a5b 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