Fix #5654 (No Default Cover causes conversion error)

This commit is contained in:
Kovid Goyal 2010-06-01 18:25:17 -06:00
parent a529cb0303
commit 900ff7204b

View File

@ -136,6 +136,8 @@ class CoverManager(object):
href = g['cover'].href
else:
href = self.default_cover()
if href is None:
return
width, height = self.inspect_cover(href)
if width is None or height is None:
self.log.warning('Failed to read cover dimensions')