Log exceptions from failover delivery

This commit is contained in:
Piotr F. Mieszkowski 2023-04-08 20:57:31 +02:00
parent f4e21217c2
commit 0da169ae61
1 changed files with 4 additions and 1 deletions

View File

@ -64,4 +64,7 @@ if not delivered:
# It seems we weren't able to deliver the message. In case it was some
# silly message-encoding issue that shouldn't bounce the message, we just
# try recoding the message body and delivering it.
core.failover_delivery(raw_message, to_addrs)
try:
core.failover_delivery(raw_message, to_addrs)
except:
LOG.exception('Failover delivery failed too')