Skip to content

Commit

Permalink
Fix small bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mmatl committed Jun 5, 2019
1 parent ba6ed7a commit 84ad444
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions urdfpy/urdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -3010,7 +3010,8 @@ def _from_xml(cls, node, path):

def _to_xml(self, parent, path):
node = self._unparse(path)
extra_tree = ET.fromstring(self.other_xml)
for child in extra_tree:
node.append(child)
if self.other_xml:
extra_tree = ET.fromstring(self.other_xml)
for child in extra_tree:
node.append(child)
return node

0 comments on commit 84ad444

Please sign in to comment.