mallard: allow <title> elements without a type attribute in <info> node
This commit is contained in:
parent
4677984da0
commit
90e8c10ad4
|
@ -91,7 +91,7 @@ class MallardPage:
|
|||
return
|
||||
title_tag = element.find('{%s}title' % MAL_NS)
|
||||
if title_tag is not None:
|
||||
type = title_tag.attrib['type']
|
||||
type = title_tag.attrib.get('type', 'link')
|
||||
try:
|
||||
role = title_tag.attrib['role']
|
||||
except KeyError:
|
||||
|
|
Reference in New Issue