xep_0054: Fix parsing BINVAL element.
This commit is contained in:
parent
27e23672c1
commit
e3fd0af9c8
1 changed files with 1 additions and 1 deletions
|
@ -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''
|
||||
|
|
Loading…
Reference in a new issue