ignore errors on receiving non-utf8 data
This commit is contained in:
parent
f6e2cb37fb
commit
0db94027c9
|
@ -1493,7 +1493,7 @@ class Connection:
|
||||||
self.dispatch('REGISTER_AGENT_INFO', (data[0], conf, is_form))
|
self.dispatch('REGISTER_AGENT_INFO', (data[0], conf, is_form))
|
||||||
elif realm == '':
|
elif realm == '':
|
||||||
if event == common.xmpp.transports.DATA_RECEIVED:
|
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:
|
elif event == common.xmpp.transports.DATA_SENT:
|
||||||
self.dispatch('STANZA_SENT', unicode(data))
|
self.dispatch('STANZA_SENT', unicode(data))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue