xep_0054: Fix parsing BINVAL element.

This commit is contained in:
Emmanuel Gil Peyrot 2017-10-08 15:42:48 +01:00
parent 27e23672c1
commit e3fd0af9c8

View file

@ -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''