This commit is contained in:
Kovid Goyal 2011-11-12 11:23:57 +05:30
parent 7dbaefac22
commit 256ddda1f9

View File

@ -505,6 +505,8 @@ class PRST1(USBMS):
debug_print('PRST1: Uploading/Refreshing Cover for ' + book.title) debug_print('PRST1: Uploading/Refreshing Cover for ' + book.title)
if (not book.thumbnail or isinstance(book.thumbnail, ImageWrapper) or if (not book.thumbnail or isinstance(book.thumbnail, ImageWrapper) or
not book.thumbnail[-1]): not book.thumbnail[-1]):
# If the thumbnail is an ImageWrapper instance, it refers to a book
# not in the calibre library
return return
cursor = connection.cursor() cursor = connection.cursor()