fix traceback in xml console
This commit is contained in:
parent
e0b63d4a40
commit
9f64f04b37
|
@ -3370,8 +3370,7 @@ class XMLConsoleWindow:
|
||||||
self.account)
|
self.account)
|
||||||
return
|
return
|
||||||
begin_iter, end_iter = self.input_tv_buffer.get_bounds()
|
begin_iter, end_iter = self.input_tv_buffer.get_bounds()
|
||||||
stanza = self.input_tv_buffer.get_text(begin_iter, end_iter, True).decode(
|
stanza = self.input_tv_buffer.get_text(begin_iter, end_iter, True)
|
||||||
'utf-8')
|
|
||||||
if stanza:
|
if stanza:
|
||||||
gajim.connections[self.account].send_stanza(stanza)
|
gajim.connections[self.account].send_stanza(stanza)
|
||||||
self.input_tv_buffer.set_text('') # we sent ok, clear the textview
|
self.input_tv_buffer.set_text('') # we sent ok, clear the textview
|
||||||
|
|
Loading…
Reference in New Issue