forked from mirror/django-mailbox
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:
parent
d2f81073ed
commit
0e4fb95a39
1 changed files with 2 additions and 5 deletions
|
|
@ -260,11 +260,8 @@ 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
|
||||
|
||||
def record_outgoing_message(self, message):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue