Skip to content

Commit

Permalink
rtd fix parse_xml.py again
Browse files Browse the repository at this point in the history
  • Loading branch information
burlen committed Apr 28, 2021
1 parent 8c9c333 commit 8d19be0
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions doc/rtd/parse_xml.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,9 +351,14 @@ def find_family(self, nodes):
children = []
for child_element in self.node_xml_root.findall(
'derivedcompoundref'):
if 'refid' in child_element.attrib:
child = nodes[child_element.get('refid')]
children.append(child)
try:
if 'refid' in child_element.attrib:
child = nodes[child_element.get('refid')]
children.append(child)
except Exception:
sys.stderr.write('Exception caught in parse_xml.py !\n')
traceback.print_exc()
sys.stderr.write('Exception ignored !\n')

self.children = children

Expand Down

0 comments on commit 8d19be0

Please sign in to comment.