Skip to content
Snippets Groups Projects
Commit 24802a04 authored by Piotr Maślanka's avatar Piotr Maślanka
Browse files

.

parent cefd4c9f
No related branches found
No related tags found
No related merge requests found
...@@ -60,9 +60,7 @@ class _ValueField(_Field): ...@@ -60,9 +60,7 @@ class _ValueField(_Field):
xmln = [xmln for xmln in self.xml_names if xmln in elem.attrib] xmln = [xmln for xmln in self.xml_names if xmln in elem.attrib]
if xmln: if xmln:
xmln = xmln[0] return elem.attri[xmln[0]]
if xmln in elem.attrib:
return elem.attrib[xmln]
else: else:
if self.default is _Required: 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)) raise TypeError('Did not find field %s in elem tag %s, looked for names %s' % (self.field_name, elem.tag, self.xml_names))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment