diff src/plugins/plugin_misc_smtp.py @ 1409:3265a2639182

massive (preventive) addition of 'u' (unicode) before the strings passed to logging functions
author souliane <souliane@mailoo.org>
date Thu, 16 Apr 2015 14:57:57 +0200
parents 72f25d671368
children 2daf7b4c6756
line wrap: on
line diff
--- a/src/plugins/plugin_misc_smtp.py	Thu Apr 16 13:31:14 2015 +0200
+++ b/src/plugins/plugin_misc_smtp.py	Thu Apr 16 14:57:57 2015 +0200
@@ -91,7 +91,7 @@
                                   subject=mail['subject'].decode('utf-8', 'replace'), mess_type='normal', profile_key=self.profile)
         except:
             exc_type, exc_value, exc_traceback = sys.exc_info()
-            log.error(_("Can't send message: %s") % exc_value)  # The email is invalid or incorreclty parsed
+            log.error(_(u"Can't send message: %s") % exc_value)  # The email is invalid or incorreclty parsed
             return defer.fail()
         self.message = None
         return defer.succeed(None)
@@ -200,7 +200,7 @@
         smtp.SMTPFactory.startedConnecting(self, connector)
 
     def clientConnectionLost(self, connector, reason):
-        log.debug(_("SMTP server connection lost (reason: %s)"), reason)
+        log.debug(_(u"SMTP server connection lost (reason: %s)"), reason)
         smtp.SMTPFactory.clientConnectionLost(self, connector, reason)
 
     def buildProtocol(self, addr):