Fix guard in mail service (#2448)

This commit is contained in:
Felix Schäfer
2022-02-04 15:30:44 +01:00
committed by GitHub
parent 4c71995560
commit dfd37cc5e3

View File

@@ -579,7 +579,7 @@ def mail_send_task(self, *args, to: List[str], subject: str, body: str, html: st
}
)
raise e
if logger:
if log_target:
log_target.log_action(
'pretix.email.error',
data={