1 https://github.com/cmusphinx/sphinxbase/commit/6989c52a3fb9473fd61326e548440fff887525c2
3 commit 6989c52a3fb9473fd61326e548440fff887525c2
4 Author: Michel Zou <xantares09@hotmail.com>
5 Date: Thu Feb 6 07:02:06 2020 +0100
7 Fix doxy2swig.py IndexError: list index out of range
9 diff --git a/doc/doxy2swig.py b/doc/doxy2swig.py
10 index 5589b0d..a01c4b1 100644
11 --- a/doc/doxy2swig.py
12 +++ b/doc/doxy2swig.py
13 @@ -299,7 +299,10 @@ class Doxy2SWIG:
14 name = first['name'].firstChild.data
16 for n in node.getElementsByTagName('param'):
17 - arg_type = n.getElementsByTagName('type')[0]
18 + elts = n.getElementsByTagName('type')
22 ref = self.get_specific_nodes(arg_type, ('ref'))
24 type_name = ref['ref'].firstChild.data