mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
SONY driver: Don't abort in presence of corrupted thumbnails
This commit is contained in:
parent
48df7c38bd
commit
3c4f91204b
@ -328,7 +328,10 @@ class XMLCache(object):
|
||||
'descendant::*[local-name()="jpeg"]|'
|
||||
'descendant::*[local-name()="png"]'):
|
||||
if img.text:
|
||||
raw = b64decode(img.text.strip())
|
||||
try:
|
||||
raw = b64decode(img.text.strip())
|
||||
except:
|
||||
continue
|
||||
book.thumbnail = raw
|
||||
break
|
||||
break
|
||||
|
Loading…
x
Reference in New Issue
Block a user