1
0
Fork 0

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.save()
try:
message_received.send(sender=self, message=msg)
except:
pass
message_received.send(sender=self, message=msg)
return msg