diff src/plugins/plugin_xep_0055.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 e3330ce65285
line wrap: on
line diff
--- a/src/plugins/plugin_xep_0055.py	Thu Apr 16 13:31:14 2015 +0200
+++ b/src/plugins/plugin_xep_0055.py	Thu Apr 16 14:57:57 2015 +0200
@@ -121,7 +121,7 @@
 
     def _fieldsErr(self, failure, profile):
         """ Called when something is wrong with fields request """
-        log.info(_("Fields request failure: %s") % str(failure.value))
+        log.info(_("Fields request failure: %s") % unicode(failure.value))
         return failure
 
     def _xmluiSearchRequest(self, raw_data, profile):
@@ -179,5 +179,5 @@
 
     def _searchErr(self, failure, profile):
         """ Called when something is wrong with search request """
-        log.info(_("Search request failure: %s") % str(failure.value))
+        log.info(_("Search request failure: %s") % unicode(failure.value))
         return failure