Fix #28. Version bump.

This commit is contained in:
Kovid Goyal 2007-03-25 11:35:16 +00:00
parent a06bc96269
commit 8ac579e8b5
2 changed files with 6 additions and 3 deletions

View File

@ -37,7 +37,7 @@ You may have to adjust the GROUP and the location of the rules file to
suit your distribution. suit your distribution.
""" """
__version__ = "0.3.9" __version__ = "0.3.10"
__docformat__ = "epytext" __docformat__ = "epytext"
__author__ = "Kovid Goyal <kovid@kovidgoyal.net>" __author__ = "Kovid Goyal <kovid@kovidgoyal.net>"

View File

@ -190,7 +190,10 @@ class BookList(list):
for attr in attrs.keys(): for attr in attrs.keys():
node.setAttributeNode(self.document.createAttribute(attr)) node.setAttributeNode(self.document.createAttribute(attr))
node.setAttribute(attr, attrs[attr]) node.setAttribute(attr, attrs[attr])
try:
w, h, data = info["cover"] w, h, data = info["cover"]
except TypeError:
w, h, data = None, None, None
if data: if data:
th = self.document.createElement(self.prefix + "thumbnail") th = self.document.createElement(self.prefix + "thumbnail")
th.setAttribute("width", str(w)) th.setAttribute("width", str(w))