repr fixed

This commit is contained in:
2023-05-15 19:46:04 +02:00
parent a304f35be8
commit 35c06a9c5e

View File

@@ -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)