aboutsummaryrefslogtreecommitdiff
path: root/mammoth/docx/xmlparser.py
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2015-06-15 15:14:28 +0100
committerMichael Williamson <mike@zwobble.org>2015-06-15 15:14:28 +0100
commit604e19be95f13c5e3b4396c3e747a2ee957b1893 (patch)
tree0deb3c302c609f078a26a0e6c496098c02582596 /mammoth/docx/xmlparser.py
parent111ecfe14e4be1b1c9aeb480148b9694e10e1e53 (diff)
Fix: find_child errors on text children
Diffstat (limited to 'mammoth/docx/xmlparser.py')
-rw-r--r--mammoth/docx/xmlparser.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mammoth/docx/xmlparser.py b/mammoth/docx/xmlparser.py
index 2cfe1e0..43d5eb4 100644
--- a/mammoth/docx/xmlparser.py
+++ b/mammoth/docx/xmlparser.py
@@ -9,7 +9,7 @@ class XmlElement(XmlElementBase):
def find_child(self, name):
for child in self.children:
- if child.name == name:
+ if isinstance(child, XmlElement) and child.name == name:
return child