From 0db94027c93347f00041a9b4c85db3cd50177db0 Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Sat, 10 Dec 2005 13:51:23 +0000 Subject: [PATCH] ignore errors on receiving non-utf8 data --- src/common/connection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/connection.py b/src/common/connection.py index 4b430b4e7..13c680e96 100644 --- a/src/common/connection.py +++ b/src/common/connection.py @@ -1493,7 +1493,7 @@ class Connection: self.dispatch('REGISTER_AGENT_INFO', (data[0], conf, is_form)) elif realm == '': if event == common.xmpp.transports.DATA_RECEIVED: - self.dispatch('STANZA_ARRIVED', unicode(data)) + self.dispatch('STANZA_ARRIVED', unicode(data, errors = 'ignore')) elif event == common.xmpp.transports.DATA_SENT: self.dispatch('STANZA_SENT', unicode(data))