diff options
author | Lance Stout <lancestout@gmail.com> | 2012-10-31 00:03:55 -0700 |
---|---|---|
committer | Lance Stout <lancestout@gmail.com> | 2012-10-31 00:16:58 -0700 |
commit | 12e8bb6ddcd686ec9835ba478a112984e65120a1 (patch) | |
tree | c8e8b435accf9f7489c468d4c1aeca8e91c5d6d6 /examples/ibb_transfer/ibb_receiver.py | |
parent | 52feabbe7641f19a17810438d2469b2395b2819f (diff) | |
download | slixmpp-12e8bb6ddcd686ec9835ba478a112984e65120a1.tar.gz slixmpp-12e8bb6ddcd686ec9835ba478a112984e65120a1.tar.bz2 slixmpp-12e8bb6ddcd686ec9835ba478a112984e65120a1.tar.xz slixmpp-12e8bb6ddcd686ec9835ba478a112984e65120a1.zip |
Turns out not all data is UTF-8, so don't try to decode it.
Fixes issue #204
Diffstat (limited to 'examples/ibb_transfer/ibb_receiver.py')
-rwxr-xr-x | examples/ibb_transfer/ibb_receiver.py | 2 |
1 files changed, 1 insertions, 1 deletions
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. |