From 58306cbe47a9c8d2800a08804c80992ea5b3dd04 Mon Sep 17 00:00:00 2001 From: Piotr Maslanka <piotr.maslanka@henrietta.com.pl> Date: Sun, 8 Oct 2017 10:34:33 +0200 Subject: [PATCH] gfh --- coolamqp/framing/compilation/xml_fields.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coolamqp/framing/compilation/xml_fields.py b/coolamqp/framing/compilation/xml_fields.py index 5609cb8..a6a0f82 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)) -- GitLab