From 6f0b03242df444474837218144d0a19f4ed3b39e Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Tue, 11 Jan 2022 22:44:03 +0100 Subject: [PATCH] modif exc. handling --- app/scodoc/html_sidebar.py | 3 ++- app/scodoc/sco_groups.py | 4 +++- app/scodoc/sco_moduleimpl_status.py | 3 +++ sco_version.py | 2 +- 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/app/scodoc/html_sidebar.py b/app/scodoc/html_sidebar.py index b3bf18a36..53efbfc95 100644 --- a/app/scodoc/html_sidebar.py +++ b/app/scodoc/html_sidebar.py @@ -35,13 +35,14 @@ from flask_login import current_user import app.scodoc.sco_utils as scu from app.scodoc import sco_preferences from app.scodoc.sco_permissions import Permission +from sco_version import SCOVERSION def sidebar_common(): "partie commune à toutes les sidebar" home_link = url_for("scodoc.index", scodoc_dept=g.scodoc_dept) H = [ - f"""ScoDoc 9.1
+ f"""ScoDoc {SCOVERSION}
Accueil
str: def moduleimpl_status(moduleimpl_id=None, partition_id=None): """Tableau de bord module (liste des evaluations etc)""" + if not isinstance(moduleimpl_id, int): + raise ScoInvalidIdType("moduleimpl_id must be an integer !") modimpl = ModuleImpl.query.get_or_404(moduleimpl_id) M = modimpl.to_dict() formsemestre_id = M["formsemestre_id"] diff --git a/sco_version.py b/sco_version.py index 1893a44fd..64e77bf1b 100644 --- a/sco_version.py +++ b/sco_version.py @@ -1,7 +1,7 @@ # -*- mode: python -*- # -*- coding: utf-8 -*- -SCOVERSION = "9.1.23" +SCOVERSION = "9.1.24" SCONAME = "ScoDoc"