diff --git a/controle_adhesion/main.py b/controle_adhesion/main.py index 483b2e7..99f6758 100755 --- a/controle_adhesion/main.py +++ b/controle_adhesion/main.py @@ -271,7 +271,7 @@ def validate_registrations_worker(): is_redir) labels = [970] ticket_response = forgejo_post_issue("cominfra", "mail", title, body, labels) - if not "id" in str(ticket_response): + if not "id" in str(ticket_response.json()): BUF.append("Validation échouée : ticket git MAIL en erreur : {}".format( ticket_response )) @@ -289,7 +289,7 @@ def validate_registrations_worker(): member['email']) labels = [970] ticket_response = forgejo_post_issue("cominfra", "mail", title, body, labels) - if not "id" in str(ticket_response): + if not "id" in str(ticket_response.json()): BUF.append("Validation échouée : ticket git XMPP en erreur : {}".format( ticket_response ))