marrow / mailer

A light-weight, modular, message representation and mail delivery framework for Python.
MIT License
276 stars 62 forks source link

Immediate manager eats exceptions #29

Closed agronholm closed 12 years ago

agronholm commented 12 years ago

I forgot to set the author of the message, and I was left wondering why my message was never delivered despite not getting any errors with the immediate manager. Turns out there was an IndexError at message.py:112:

 return self.sender or self.author[0]

This exception was however silently discarded, which obviously should never happen. Instead, a friendly exception reminding me that at least one author must be set should've been raised (and delivered to my application!).

amcgregor commented 12 years ago

What transport was in use? The immediate manager only explicitly handles three exceptions, none of which are IndexError.