Suppression log inutile

This commit is contained in:
CapsLock 2021-04-08 22:30:20 +02:00
parent 218bb3d69c
commit 5fa5f23832
2 changed files with 1 additions and 2 deletions

View file

@ -16,7 +16,7 @@ def send(to, subject, body, html=None, copy=None, attachments=None):
if not config.SEND_EMAILS:
body = body.replace("https", "http")
return print("Sending email", str(body.encode('utf-8')))
return print("Sending email", str(body.encode('utf-8')), flush=True)
message.send(
to=to,

View file

@ -59,7 +59,6 @@ async def send_sesame(request, response):
token=token.decode(),
url_for=app.url_for,
)
print(f"sesame: {token.decode()}", flush=True)
except RuntimeError:
response.message("Oops, impossible d'envoyer le courriel…", status="error")
else: