Mail: Log error message after retry

This commit is contained in:
Raphael Michel
2023-10-19 14:03:26 +02:00
parent 66a7c7e6b8
commit c49dec3835

View File

@@ -605,7 +605,7 @@ def mail_send_task(self, *args, to: List[str], subject: str, body: str, html: st
'pretix.email.error',
data={
'subject': 'Internal error',
'message': 'Max retries exceeded',
'message': f'Max retries exceeded after error "{str(e)}"',
'recipient': '',
'invoices': [],
}