diff options
Diffstat (limited to 'mammoth')
| -rw-r--r-- | mammoth/docx/xmlparser.py | 2 |
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 |
