From 6b2862cbe64778d579fe1991358310601dba575d Mon Sep 17 00:00:00 2001 From: Adrien Bourmault Date: Wed, 14 Sep 2022 23:28:21 +0200 Subject: [PATCH] =?UTF-8?q?WIP:=20contr=C3=B4le=20cotisation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controle_cotisation/main.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/controle_cotisation/main.py b/controle_cotisation/main.py index 49d0242..ad2cfb5 100755 --- a/controle_cotisation/main.py +++ b/controle_cotisation/main.py @@ -286,7 +286,11 @@ def validate(member): "WHERE m.id = {} AND l.id_account = 481;".format(member) # Note: su.id_service = 1 parceque la cotisation correspond au service 1 - answer = gestion_read(request)["results"][-1] + try: + answer = gestion_read(request)["results"][-1] + except: + print(answer) + raise(Exception) print(answer)