This commit is contained in:
Kovid Goyal 2007-11-27 16:39:09 +00:00
parent 2a52852208
commit 5d7ef03701

View File

@ -185,7 +185,7 @@ class OPFReader(MetaInformation):
scheme = item.get('scheme')
if not scheme:
scheme = item.get('opf:scheme')
if scheme.lower() == 'isbn':
if scheme is not None and scheme.lower() == 'isbn':
return item.string
return None