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 /sleekxmpp | |
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 'sleekxmpp')
-rw-r--r-- | sleekxmpp/plugins/xep_0047/stanza.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sleekxmpp/plugins/xep_0047/stanza.py b/sleekxmpp/plugins/xep_0047/stanza.py index e4a32f87..7e5d2fed 100644 --- a/sleekxmpp/plugins/xep_0047/stanza.py +++ b/sleekxmpp/plugins/xep_0047/stanza.py @@ -14,7 +14,7 @@ def to_b64(data): def from_b64(data): - return bytes(base64.b64decode(bytes(data))).decode('utf-8') + return bytes(base64.b64decode(bytes(data))) class Open(ElementBase): |