From 8fccfc452b8e7823d34762b2b1b39282d5a56f56 Mon Sep 17 00:00:00 2001 From: Tim-Oliver Husser Date: Mon, 13 Dec 2021 13:51:40 +0100 Subject: replaced params.xml.findall with params.findall in xml2fault --- slixmpp/plugins/xep_0009/binding.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slixmpp/plugins/xep_0009/binding.py b/slixmpp/plugins/xep_0009/binding.py index ffec5431..4b64a010 100644 --- a/slixmpp/plugins/xep_0009/binding.py +++ b/slixmpp/plugins/xep_0009/binding.py @@ -22,7 +22,7 @@ def fault2xml(fault): def xml2fault(params): vals = [] - for value in params.xml.findall('{%s}value' % _namespace): + for value in params.findall('{%s}value' % _namespace): vals.append(_xml2py(value)) fault = dict() fault['code'] = vals[0]['faultCode'] -- cgit v1.2.3