comparison src/plugins/plugin_xep_0048.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 94c450972346
comparison
equal deleted inserted replaced
1408:8a7145138330 1409:3265a2639182
219 log.warning(_("No room jid selected")) 219 log.warning(_("No room jid selected"))
220 return {} 220 return {}
221 221
222 d = self.host.plugins['XEP-0045'].join(room_jid, nick, {}, profile_key=profile) 222 d = self.host.plugins['XEP-0045'].join(room_jid, nick, {}, profile_key=profile)
223 def join_eb(failure): 223 def join_eb(failure):
224 log.warning("Error while trying to join room: %s" % failure) 224 log.warning(u"Error while trying to join room: %s" % failure)
225 # FIXME: failure are badly managed in plugin XEP-0045. Plugin XEP-0045 need to be fixed before managing errors correctly here 225 # FIXME: failure are badly managed in plugin XEP-0045. Plugin XEP-0045 need to be fixed before managing errors correctly here
226 return {} 226 return {}
227 d.addCallbacks(lambda dummy: {}, join_eb) 227 d.addCallbacks(lambda dummy: {}, join_eb)
228 return d 228 return d
229 229