mallard: allow <title> elements without a type attribute in <info> node

This commit is contained in:
Frédéric Péters 2011-09-30 18:19:43 +02:00
parent 4677984da0
commit 90e8c10ad4
1 changed files with 1 additions and 1 deletions

View File

@ -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: