diff src/plugins/plugin_misc_account.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 069ad98b360d
children 5d42e2219d7c
line wrap: on
line diff
--- a/src/plugins/plugin_misc_account.py	Thu Apr 16 13:31:14 2015 +0200
+++ b/src/plugins/plugin_misc_account.py	Thu Apr 16 14:57:57 2015 +0200
@@ -131,10 +131,10 @@
         if self._prosody_path is None:
             paths = which(self.getConfig('prosodyctl'))
             if not paths:
-                log.error(_("Can't find %s") % (self.getConfig('prosodyctl'), ))
+                log.error(_(u"Can't find %s") % (self.getConfig('prosodyctl'),))
             else:
                 self._prosody_path = dirname(paths[0])
-                log.info(_('Prosody path found: %s') % (self._prosody_path, ))
+                log.info(_(u'Prosody path found: %s') % (self._prosody_path,))
 
         self._sessions = Sessions()
 
@@ -213,7 +213,7 @@
 
         def email_ko(ignore):
             #TODO: return error code to user
-            log.error("Failed to send email to %s" % email)
+            log.error(u"Failed to send email to %s" % email)
 
         body = (u"""Welcome to Libervia, a Salut à Toi project part