1
0
Fork 1
mirror of https://github.com/coddingtonbear/django-mailbox.git synced 2026-07-09 22:38:19 +02:00

Turn on exception for incoming messages

> Errors should never pass silently

I waste a hours to debug that . I don't expect this kind of behaviour. In my app proccess incoming mails is critical and I should receive exception and on fail transaction should rollback everything and try again later.
This commit is contained in:
Adam Dobrawy 2015-08-04 16:14:29 +02:00
parent d2f81073ed
commit 0e4fb95a39

View file

@ -260,10 +260,7 @@ class Mailbox(models.Model):
msg.outgoing = False msg.outgoing = False
msg.save() msg.save()
try:
message_received.send(sender=self, message=msg) message_received.send(sender=self, message=msg)
except:
pass
return msg return msg