From 0bf13f7790dd935864ad93c5dd762878b2ceaeaa Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Thu, 5 Sep 2024 15:35:49 +0200 Subject: [PATCH] Saisie excel: corrige message d'erreur --- app/scodoc/sco_saisie_excel.py | 5 ++++- sco_version.py | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/app/scodoc/sco_saisie_excel.py b/app/scodoc/sco_saisie_excel.py index f46d4a6dc..55f9a66f2 100644 --- a/app/scodoc/sco_saisie_excel.py +++ b/app/scodoc/sco_saisie_excel.py @@ -939,7 +939,10 @@ def _get_sheet_evaluations( if (evaluation is None) or (sheet_eval_id != evaluation.id): diag.append( f"""Erreur: fichier invalide: le code d'évaluation de correspond pas ! ('{ - sheet_eval_id or ('non trouvé')}' != '{evaluation.id}')""" + sheet_eval_id or ('non trouvé') + }' != '{ + evaluation.id if evaluation else "pas d'évaluation indiquée" + }')""" ) raise InvalidNoteValue() return i, [evaluation], {evaluation.id: 4} diff --git a/sco_version.py b/sco_version.py index 5b57b0979..5763f98fc 100644 --- a/sco_version.py +++ b/sco_version.py @@ -1,7 +1,7 @@ # -*- mode: python -*- # -*- coding: utf-8 -*- -SCOVERSION = "9.7.16" +SCOVERSION = "9.7.17" SCONAME = "ScoDoc"