diff options
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2017-10-08 15:42:48 +0100 |
---|---|---|
committer | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2017-10-08 15:42:48 +0100 |
commit | e3fd0af9c8ae6156276c94cdb4b27f96dfc22ea5 (patch) | |
tree | d59aa9a9942c20f0411b74a65865d97be3876858 | |
parent | 27e23672c105c0ace6efb86ee9114645dd7d90dc (diff) | |
download | slixmpp-e3fd0af9c8ae6156276c94cdb4b27f96dfc22ea5.tar.gz slixmpp-e3fd0af9c8ae6156276c94cdb4b27f96dfc22ea5.tar.bz2 slixmpp-e3fd0af9c8ae6156276c94cdb4b27f96dfc22ea5.tar.xz slixmpp-e3fd0af9c8ae6156276c94cdb4b27f96dfc22ea5.zip |
xep_0054: Fix parsing BINVAL element.
-rw-r--r-- | slixmpp/plugins/xep_0054/stanza.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/slixmpp/plugins/xep_0054/stanza.py b/slixmpp/plugins/xep_0054/stanza.py index 9bdcb448..b1da117d 100644 --- a/slixmpp/plugins/xep_0054/stanza.py +++ b/slixmpp/plugins/xep_0054/stanza.py @@ -261,7 +261,7 @@ class BinVal(ElementBase): def get_binval(self): parent = self.parent() - xml = parent.find('{%s}BINVAL' % self.namespace) + xml = parent.xml.find('{%s}BINVAL' % self.namespace) if xml is not None: return base64.b64decode(bytes(xml.text)) return b'' |