Skip to content

Commit 8aa94ac

Browse files
committed
Rebuild doc_root in the build_tree
Because if attirbutes are updated/defined after __init__ the doc_root didn't have that changes
1 parent fc491de commit 8aa94ac

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

libcomxml/core/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,7 @@ def build_tree(self):
228228
"""
229229
if self.built:
230230
return
231+
self.doc_root = self.root.element()
231232
for key in self.sorted_fields():
232233
if not key in self._fields:
233234
continue

0 commit comments

Comments
 (0)