Changeset 2983

Show
Ignore:
Timestamp:
08/10/06 15:58:29 (18 years ago)
Author:
jerome
Message:

Fixed a problem in the handling of SMTP errors.

Location:
pykota/trunk
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/cupspykota

    r2973 r2983  
    10081008                        server.sendmail(adminmail, destination, msg.as_string()) 
    10091009                    except smtplib.SMTPException, answer :     
    1010                         for (k, v) in answer.recipients.items() : 
    1011                             self.printInfo(_("Impossible to send mail to %s, error %s : %s") % (k, v[0], v[1]), "error") 
     1010                        try : 
     1011                            for (k, v) in answer.recipients.items() : 
     1012                                self.printInfo(_("Impossible to send mail to %s, error %s : %s") % (k, v[0], v[1]), "error") 
     1013                        except AttributeError : 
     1014                            self.printInfo(_("Problem when sending mail : %s") % str(answer), "error") 
    10121015                    server.quit() 
    10131016            self.logdebug("Feedback sent to user %s." % self.UserName) 
  • pykota/trunk/NEWS

    r2974 r2983  
    2222PyKota NEWS : 
    2323        
     24    - 1.25alpha9 (2006-08-10) : 
     25     
     26        - Fixed a problem when an SMTP error occured and the recovery 
     27          routine failed to handle it correctly. 
     28           
    2429    - 1.25alpha8 (2006-07-11) : 
    2530     
  • pykota/trunk/pykota/version.py

    r2974 r2983  
    2222# 
    2323 
    24 __version__ = "1.25alpha8_unofficial" 
     24__version__ = "1.25alpha9_unofficial" 
    2525 
    2626__doc__ = "PyKota : a complete Printing Quota Solution for CUPS."