From e3fd0af9c8ae6156276c94cdb4b27f96dfc22ea5 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Sun, 8 Oct 2017 15:42:48 +0100 Subject: [PATCH] xep_0054: Fix parsing BINVAL element. --- slixmpp/plugins/xep_0054/stanza.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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''