diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2007-11-05 17:51:35 (GMT) |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2007-11-05 17:51:35 (GMT) |
commit | d29f92317393a6b9d161bdc8eb67f259bbe58693 (patch) | |
tree | 53729c867e36126aa53459d292fe661576050cfe | |
parent | dad964b01b58fcc3c2b2ea9652641a188be14557 (diff) |
src/buddy.py: __repr__: encode nick in UTF-8 so we get comprehensible log messages rather than tracebacks
-rw-r--r-- | src/buddy.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buddy.py b/src/buddy.py index 52e0146..3678a88 100644 --- a/src/buddy.py +++ b/src/buddy.py @@ -220,7 +220,7 @@ class Buddy(ExportedGObject): self.IconChanged(self._icon) def __repr__(self): - return '<ps.buddy.Buddy %s>' % self._nick + return '<ps.buddy.Buddy %s>' % (self._nick or u'').encode('utf-8') def do_get_property(self, pspec): """Retrieve current value for the given property specifier |