From 35c06a9c5e0daadaf734e1e4efc7d8d424b524b5 Mon Sep 17 00:00:00 2001 From: Phuoc CAO Date: Mon, 15 May 2023 19:46:04 +0200 Subject: [PATCH] repr fixed --- mondumas/views/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mondumas/views/utils.py b/mondumas/views/utils.py index 7248e68..b7e6af1 100644 --- a/mondumas/views/utils.py +++ b/mondumas/views/utils.py @@ -174,7 +174,7 @@ def send_mail(request, expediteur, destinataires, objet, corps): except Exception as e: # Just print(e) is cleaner and more likely what you want, # but if you insist on printing message specifically whenever possible... - msg = repr(e)[0:400]) + msg = repr(e)[0:400] insert_log(request, 'MAILER', "- ERROR : %s, TO : %s" % (msg, destinataires)) return str(msg)