From d120300cd118646408d5554ba44b8e9e644ea6f6 Mon Sep 17 00:00:00 2001 From: "Adrien Bourmault (neox)" Date: Sat, 4 Nov 2023 15:22:54 +0100 Subject: [PATCH] =?UTF-8?q?cotisation=20:=20correction=20r=C3=A9f=C3=A9ren?= =?UTF-8?q?ce=20absente=20(corrige=20#2)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controle_cotisation/main.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/controle_cotisation/main.py b/controle_cotisation/main.py index 5c74b41..aaac890 100755 --- a/controle_cotisation/main.py +++ b/controle_cotisation/main.py @@ -369,6 +369,11 @@ def validate(member): str(answer["amount"])[:-2], str(answer["amount"])[-2:])) latexfile = latexfile.replace("DATE-VERSEMENT", date) + + if not answer["true_reference"]: + BUF.append("Erreur : référence introuvable (déféré)") + return + latexfile = latexfile.replace("MODE-VERSEMENT", answer["true_reference"]) try: