diff --git a/app/scodoc/sco_groups_view.py b/app/scodoc/sco_groups_view.py index 603627d14c..5b89ab44fa 100644 --- a/app/scodoc/sco_groups_view.py +++ b/app/scodoc/sco_groups_view.py @@ -302,7 +302,12 @@ class DisplayedGroupsInfos(object): if group_ids: group_ids = [group_ids] # cas ou un seul parametre, pas de liste else: - group_ids = [int(g) for g in group_ids] + try: + group_ids = [int(g) for g in group_ids] + except ValueError as exc: + raise ScoValueError( + "identifiant de groupe invalide (mettre à jour vos bookmarks ?)" + ) from exc if not formsemestre_id and moduleimpl_id: mods = sco_moduleimpl.moduleimpl_list(moduleimpl_id=moduleimpl_id) if len(mods) != 1: diff --git a/app/views/notes.py b/app/views/notes.py index efad2808b8..7be1064441 100644 --- a/app/views/notes.py +++ b/app/views/notes.py @@ -397,7 +397,7 @@ def ue_table(formation_id=None, semestre_idx=1, msg=""): ) -@bp.route("/ue_infos/") +@bp.route("/ue_infos/") @scodoc @permission_required(Permission.ScoView) def ue_infos(ue_id): diff --git a/app/views/pn_modules.py b/app/views/pn_modules.py index 565bc210f9..935020e628 100644 --- a/app/views/pn_modules.py +++ b/app/views/pn_modules.py @@ -68,7 +68,7 @@ from app.scodoc.sco_permissions import Permission @bp.route("/table_modules_ue_coefs/") -@bp.route("/table_modules_ue_coefs//") +@bp.route("/table_modules_ue_coefs//") @scodoc @permission_required(Permission.ScoView) def table_modules_ue_coefs(formation_id, semestre_idx=None): diff --git a/app/views/scodoc.py b/app/views/scodoc.py index e65c4e6661..809d8e4631 100644 --- a/app/views/scodoc.py +++ b/app/views/scodoc.py @@ -121,7 +121,7 @@ def create_dept(): ) -@bp.route("/ScoDoc/toggle_dept_vis/", methods=["GET", "POST"]) +@bp.route("/ScoDoc/toggle_dept_vis/", methods=["GET", "POST"]) @admin_required def toggle_dept_vis(dept_id): """Cache ou rend visible un dept""" diff --git a/sco_version.py b/sco_version.py index 23fba00697..1e9561b086 100644 --- a/sco_version.py +++ b/sco_version.py @@ -1,7 +1,7 @@ # -*- mode: python -*- # -*- coding: utf-8 -*- -SCOVERSION = "9.1.56" +SCOVERSION = "9.1.57" SCONAME = "ScoDoc"