[library-web] mallard: allow <title> elements without a type attribute in <info> node
- From: Frederic Peters <fpeters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [library-web] mallard: allow <title> elements without a type attribute in <info> node
- Date: Fri, 30 Sep 2011 16:43:56 +0000 (UTC)
commit 90e8c10ad453f7b02a631855a05e1a0ace54f4cc
Author: FrÃdÃric PÃters <fpeters 0d be>
Date: Fri Sep 30 18:19:43 2011 +0200
mallard: allow <title> elements without a type attribute in <info> node
src/modtypes/mallard.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/modtypes/mallard.py b/src/modtypes/mallard.py
index 1b23fb0..6b7956a 100644
--- a/src/modtypes/mallard.py
+++ b/src/modtypes/mallard.py
@@ -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:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]