This commit is contained in:
Kovid Goyal 2012-02-28 11:26:16 +05:30
parent b19169d192
commit e1cf2a1bb5

View File

@ -324,7 +324,7 @@ class OEBReader(object):
for item in spine:
if item.media_type.lower() not in OEB_DOCS:
if not hasattr(item.data, 'xpath'):
self.oeb.log.warn('The item %s is not an XML document.'
self.oeb.log.warn('The item %s is not a XML document.'
' Removing it from spine.'%item.href)
spine.remove(item)