diff src/plugins/plugin_xep_0163.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 4c4f88d7b156
line wrap: on
line diff
--- a/src/plugins/plugin_xep_0163.py	Thu Apr 16 13:31:14 2015 +0200
+++ b/src/plugins/plugin_xep_0163.py	Thu Apr 16 14:57:57 2015 +0200
@@ -92,7 +92,7 @@
         """
         profile = self.host.memory.getProfileName(profile_key)
         if not profile:
-            log.error(_('Trying to send personal event with an unknown profile key [%s]') % profile_key)
+            log.error(_(u'Trying to send personal event with an unknown profile key [%s]') % profile_key)
             raise exceptions.ProfileUnknownError
         if not event_type in self.pep_out_cb.keys():
             log.error(_('Trying to send personal event for an unknown type'))