[telepathy-butterfly/master] Fix crash on nudge reception (fd.o #22350)
Nicolò Chieffo
84yelo3 at gmail.com
Sat Jul 4 12:01:56 PDT 2009
Remove the call to gettext in on_conversation_nudge_received which
shouldn't have been there in the first place since we don't use
gettext.
---
NEWS | 1 +
butterfly/channel/text.py | 2 +-
2 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/NEWS b/NEWS
index 8160d6e..c9af96c 100644
--- a/NEWS
+++ b/NEWS
@@ -7,6 +7,7 @@ Enhancements:
Fixes:
* Use the presence type busy for busy presence (fd.o #22619)
+ * Fix crash on nudge reception (fd.o #22350)
telepathy-butterfly-0.3.4 (16-06-2009)
======================================
diff --git a/butterfly/channel/text.py b/butterfly/channel/text.py
index 1bd9be8..ce0b8b2 100644
--- a/butterfly/channel/text.py
+++ b/butterfly/channel/text.py
@@ -125,7 +125,7 @@ class ButterflyTextChannel(
handle = ButterflyHandleFactory(self._conn_ref(), 'contact',
sender.account, sender.network_id)
type = telepathy.CHANNEL_TEXT_MESSAGE_TYPE_ACTION
- text = unicode(_("sends you a nudge"), "utf-8")
+ text = unicode("sends you a nudge", "utf-8")
logger.info("User %r sent a nudge" % handle)
self.Received(id, timestamp, handle, type, 0, text)
self._recv_id += 1
--
1.5.6.5
More information about the telepathy-commits
mailing list