SONY driver: Don't abort in presence of corrupted thumbnails

This commit is contained in:
Kovid Goyal 2010-07-25 14:53:23 -06:00
parent 48df7c38bd
commit 3c4f91204b

View File

@ -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