File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 5
5
import sys
6
6
7
7
8
- VERSION = '4.4 '
8
+ VERSION = '4.5 '
9
9
10
10
11
11
js_code = '''
28
28
first_c = first_c.children[1]
29
29
name = first_c.children[0].innerText
30
30
type = (first_c.children[1] && first_c.children[1].innerText) || 'Unknown'
31
- desc = second_c.children[0].children[0].innerText
31
+ if (!second_c) continue
32
+ desc = second_c ? second_c.children[0].children[0].innerText : ''
32
33
// console.log(name, type, desc)
33
34
let key = 'SKILL_' + cname + '_' + type.toUpperCase() + '/' + name
34
35
res.push([key, {
41
42
}
42
43
}
43
44
}])
44
- let other_descs = second_c.children[0].children[1]
45
+ let other_descs = second_c ? second_c .children[0].children[1] : undefined
45
46
if (other_descs != undefined) {
46
47
// contains other descs
47
48
for (j = 0; j < other_descs.children.length; j++) {
You can’t perform that action at this time.
0 commit comments