diff --git a/coolamqp/framing/compilation/xml_fields.py b/coolamqp/framing/compilation/xml_fields.py index 5609cb81e2e706c027f6c30e8f8f56ceafd2f7fa..a6a0f82db91275f07087ed483deb35fe531c67d3 100644 --- a/coolamqp/framing/compilation/xml_fields.py +++ b/coolamqp/framing/compilation/xml_fields.py @@ -60,7 +60,7 @@ class _ValueField(_Field): xmln = [xmln for xmln in self.xml_names if xmln in elem.attrib] if xmln: - return elem.attri[xmln[0]] + return elem.attrib[xmln[0]] else: if self.default is _Required: raise TypeError('Did not find field %s in elem tag %s, looked for names %s' % (self.field_name, elem.tag, self.xml_names))