massive (preventive) addition of 'u' (unicode) before the strings passed to logging functions
This commit is contained in:
parent
cc829beac7
commit
67ff77e5de
1 changed files with 272 additions and 271 deletions
|
|
@ -131,10 +131,10 @@ class MiscAccount(object):
|
|||
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 @@ class MiscAccount(object):
|
|||
|
||||
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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue