diff 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
line wrap: on
line diff
--- a/src/plugins/plugin_xep_0048.py	Thu Apr 16 13:31:14 2015 +0200
+++ b/src/plugins/plugin_xep_0048.py	Thu Apr 16 14:57:57 2015 +0200
@@ -221,7 +221,7 @@
 
         d = self.host.plugins['XEP-0045'].join(room_jid, nick, {}, profile_key=profile)
         def join_eb(failure):
-            log.warning("Error while trying to join room: %s" % failure)
+            log.warning(u"Error while trying to join room: %s" % failure)
             # FIXME: failure are badly managed in plugin XEP-0045. Plugin XEP-0045 need to be fixed before managing errors correctly here
             return {}
         d.addCallbacks(lambda dummy: {}, join_eb)