From 91af5704dcf7a3b085c716b7175ef5151eb834d4 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Sat, 24 Aug 2024 19:41:29 +0200 Subject: [PATCH] =?UTF-8?q?Fix:=20upload=20notes=20excel=20sans=20indiquer?= =?UTF-8?q?=20d'=C3=A9val.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/scodoc/sco_saisie_excel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/scodoc/sco_saisie_excel.py b/app/scodoc/sco_saisie_excel.py index 1f2383b8..6aa6a86f 100644 --- a/app/scodoc/sco_saisie_excel.py +++ b/app/scodoc/sco_saisie_excel.py @@ -928,7 +928,7 @@ def _get_sheet_evaluations( i, r = _xls_search_sheet_code(rows, diag) if isinstance(r, int): # mono-eval sheet_eval_id = r - if sheet_eval_id != evaluation.id: + 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}')"""