From 3a9b45e4f279c430242f8d6f3ee7c9506ba0d208 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Tue, 20 Sep 2016 16:45:29 +0900 Subject: ElementBase: Remove deprecated find() and findall() methods. --- slixmpp/plugins/xep_0325/control.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'slixmpp/plugins/xep_0325') diff --git a/slixmpp/plugins/xep_0325/control.py b/slixmpp/plugins/xep_0325/control.py index 9a493b02..5c1b3003 100644 --- a/slixmpp/plugins/xep_0325/control.py +++ b/slixmpp/plugins/xep_0325/control.py @@ -540,7 +540,7 @@ class XEP_0325(BasePlugin): fields = [f['name'] for f in iq['setResponse']['datas']] error_msg = None - if not iq['setResponse'].find('error') is None and not iq['setResponse']['error']['text'] == "": + if not iq['setResponse'].xml.find('error') is None and not iq['setResponse']['error']['text'] == "": error_msg = iq['setResponse']['error']['text'] callback = self.sessions[seqnr]["callback"] -- cgit v1.2.3