mallard: Ignore sections without title
This commit is contained in:
parent
52795316ca
commit
0508681eee
|
@ -77,6 +77,8 @@ class MallardPage:
|
|||
self.sort_title.attrib['type'] = 'sort'
|
||||
for section in tree.findall('{%s}section' % MAL_NS):
|
||||
title_tag = section.find('{%s}title' % MAL_NS)
|
||||
if title_tag is None:
|
||||
continue
|
||||
if not section.attrib.get('id'):
|
||||
continue
|
||||
self.sections.append({'id': section.attrib['id'],
|
||||
|
|
Reference in New Issue