Update opolka/ScoDoc from ScoDoc/ScoDoc #2

Merged
opolka merged 1272 commits from ScoDoc/ScoDoc:master into master 2024-05-27 09:11:04 +02:00
Showing only changes of commit ec274f0ad6 - Show all commits

View File

@ -37,7 +37,7 @@ from app.comp.res_compat import NotesTableCompat
from app.models import FormSemestre from app.models import FormSemestre
import app.scodoc.sco_utils as scu import app.scodoc.sco_utils as scu
import app.scodoc.notesdb as ndb 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.scolog import logdb
from app.scodoc.gen_tables import GenTable from app.scodoc.gen_tables import GenTable
from app.scodoc import safehtml from app.scodoc import safehtml
@ -259,7 +259,7 @@ def itemsuivi_get(cnx, itemsuivi_id, ignore_errors=False):
if items: if items:
return items[0] return items[0]
elif not ignore_errors: elif not ignore_errors:
raise ValueError("invalid itemsuivi_id") raise ScoValueError(f"Débouché: item inexistant ({itemsuivi_id})")
return None return None