Changeset 96

Show
Ignore:
Timestamp:
06/19/07 20:44:16 (2 years ago)
Author:
David Rousselie <dax@happycoders.org>
Message:

Prevent to send email with subject = "None"

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/jmc/model/account.py

    r93 r96  
    638638        """Create new email""" 
    639639        email = MIMEText(body) 
     640        if subject is None: 
     641            subject = "" 
    640642        email['Subject'] = Header(str(subject)) 
    641643        email['From'] = Header(str(from_email))