Mercurial > libervia-backend
comparison 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 |
comparison
equal
deleted
inserted
replaced
1408:8a7145138330 | 1409:3265a2639182 |
---|---|
90 @param data: dict of {string:string} of event_type dependant data | 90 @param data: dict of {string:string} of event_type dependant data |
91 @param profile_key: profile who send the event | 91 @param profile_key: profile who send the event |
92 """ | 92 """ |
93 profile = self.host.memory.getProfileName(profile_key) | 93 profile = self.host.memory.getProfileName(profile_key) |
94 if not profile: | 94 if not profile: |
95 log.error(_('Trying to send personal event with an unknown profile key [%s]') % profile_key) | 95 log.error(_(u'Trying to send personal event with an unknown profile key [%s]') % profile_key) |
96 raise exceptions.ProfileUnknownError | 96 raise exceptions.ProfileUnknownError |
97 if not event_type in self.pep_out_cb.keys(): | 97 if not event_type in self.pep_out_cb.keys(): |
98 log.error(_('Trying to send personal event for an unknown type')) | 98 log.error(_('Trying to send personal event for an unknown type')) |
99 raise exceptions.DataError('Type unknown') | 99 raise exceptions.DataError('Type unknown') |
100 return self.pep_out_cb[event_type](data, profile) | 100 return self.pep_out_cb[event_type](data, profile) |