Changeset 1384

Show
Ignore:
Timestamp:
03/03/04 14:10:35 (20 years ago)
Author:
jalet
Message:

Now catches all smtplib exceptions when there's a problem sending messages

Location:
pykota/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/NEWS

    r1381 r1384  
    2424    - 1.18alpha14 : 
    2525     
     26        - Catches more (all ?) problems with SMTP servers instead 
     27          of breaking. 
     28           
    2629        - Italian translation added. 
    2730         
  • pykota/trunk/pykota/tool.py

    r1374 r1384  
    2222# 
    2323# $Log$ 
     24# Revision 1.77  2004/03/03 13:10:35  jalet 
     25# Now catches all smtplib exceptions when there's a problem sending messages 
     26# 
    2427# Revision 1.76  2004/03/01 14:34:15  jalet 
    2528# PYKOTAPHASE wasn't set at the right time at the end of data transmission 
     
    445448        try : 
    446449            server.sendmail(adminmail, [touser], "From: %s\nTo: %s\n%s" % (adminmail, touser, fullmessage)) 
    447         except smtplib.SMTPRecipientsRefused, answer :     
     450        except smtplib.SMTPException, answer :     
    448451            for (k, v) in answer.recipients.items() : 
    449452                self.logger.log_message(_("Impossible to send mail to %s, error %s : %s") % (k, v[0], v[1]), "error")