replaced params.xml.findall with params.findall in xml2fault

This commit is contained in:
Tim-Oliver Husser 2021-12-13 13:51:40 +01:00
parent d4067275ff
commit 8fccfc452b

View file

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