Correction bug cotisation

This commit is contained in:
Adrien Bourmault 2022-11-04 14:40:13 +01:00
parent 7dc37931dc
commit f9c2b848e7
No known key found for this signature in database
GPG Key ID: 6EB408FE0ACEC664
1 changed files with 7 additions and 4 deletions

View File

@ -347,9 +347,12 @@ def validate(member):
try: try:
answer = gestion_read(request)["results"][-1] answer = gestion_read(request)["results"][-1]
except: except IndexError:
print(gestion_read(request)) BUF.append("* {} (numero inconnu)".format(member))
raise(Exception) BUF.append(" SUPPRESSION MEMBRE")
BUF.append("")
os.remove(WORKDIR+"/transition/"+member)
return
date = datetime.datetime.strptime( date = datetime.datetime.strptime(
answer["date"],'%Y-%m-%d').strftime("%d/%m/%Y") answer["date"],'%Y-%m-%d').strftime("%d/%m/%Y")