forked from ScoDoc/ScoDoc
Modifie gestion erreur pour suivi débouchés
This commit is contained in:
parent
bd0df7c503
commit
0caf2ab0ab
@ -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
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user