From 12e8bb6ddcd686ec9835ba478a112984e65120a1 Mon Sep 17 00:00:00 2001 From: Lance Stout Date: Wed, 31 Oct 2012 00:03:55 -0700 Subject: Turns out not all data is UTF-8, so don't try to decode it. Fixes issue #204 --- examples/ibb_transfer/ibb_receiver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples') diff --git a/examples/ibb_transfer/ibb_receiver.py b/examples/ibb_transfer/ibb_receiver.py index 18d18f92..0169d63d 100755 --- a/examples/ibb_transfer/ibb_receiver.py +++ b/examples/ibb_transfer/ibb_receiver.py @@ -85,7 +85,7 @@ class IBBReceiver(sleekxmpp.ClientXMPP): def stream_opened(self, stream): # NOTE: IBB streams are bi-directional, so the original sender is # now the opened stream's receiver. - print('Stream opened: %s from ' % (stream.sid, stream.receiver)) + print('Stream opened: %s from %s' % (stream.sid, stream.receiver)) # You could run a loop reading from the stream using stream.recv(), # or use the ibb_stream_data event. -- cgit v1.2.3