mirror of
https://github.com/almet/copanier.git
synced 2025-04-28 19:42:37 +02:00
Suppression log inutile
This commit is contained in:
parent
218bb3d69c
commit
5fa5f23832
2 changed files with 1 additions and 2 deletions
|
@ -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,
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue