mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #5654 (No Default Cover causes conversion error)
This commit is contained in:
parent
a529cb0303
commit
900ff7204b
@ -136,6 +136,8 @@ class CoverManager(object):
|
|||||||
href = g['cover'].href
|
href = g['cover'].href
|
||||||
else:
|
else:
|
||||||
href = self.default_cover()
|
href = self.default_cover()
|
||||||
|
if href is None:
|
||||||
|
return
|
||||||
width, height = self.inspect_cover(href)
|
width, height = self.inspect_cover(href)
|
||||||
if width is None or height is None:
|
if width is None or height is None:
|
||||||
self.log.warning('Failed to read cover dimensions')
|
self.log.warning('Failed to read cover dimensions')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user