From 2586abc0d36cbb8eae3540b5cb6d224c90b4b699 Mon Sep 17 00:00:00 2001 From: mathieui Date: Tue, 20 Sep 2016 20:51:21 +0200 Subject: Fix xep-0050 stanza broken in 3a9b45e4f279 --- slixmpp/plugins/xep_0050/stanza.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/slixmpp/plugins/xep_0050/stanza.py b/slixmpp/plugins/xep_0050/stanza.py index 128a75cd..107135f4 100644 --- a/slixmpp/plugins/xep_0050/stanza.py +++ b/slixmpp/plugins/xep_0050/stanza.py @@ -136,7 +136,7 @@ class Command(ElementBase): ('error', 'The command ran, but had errors')] """ notes = [] - notes_xml = self.findall('{%s}note' % self.namespace) + notes_xml = self.xml.findall('{%s}note' % self.namespace) for note in notes_xml: notes.append((note.attrib.get('type', 'info'), note.text)) @@ -167,7 +167,7 @@ class Command(ElementBase): """ Remove all notes associated with the command result. """ - notes_xml = self.findall('{%s}note' % self.namespace) + notes_xml = self.xml.findall('{%s}note' % self.namespace) for note in notes_xml: self.xml.remove(note) -- cgit v1.2.3