From a5be334092487c74b866d02f99dd7188a03f15ea Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 12 Oct 2011 04:45:20 +0530 Subject: [PATCH] Fix #872385 (Sony T1: Typo in upload_cover) --- src/calibre/devices/prst1/driver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/devices/prst1/driver.py b/src/calibre/devices/prst1/driver.py index 44c93af4cc..eeb73da182 100644 --- a/src/calibre/devices/prst1/driver.py +++ b/src/calibre/devices/prst1/driver.py @@ -443,7 +443,7 @@ class PRST1(USBMS): def upload_book_cover(self, connection, book, source_id): debug_print('PRST1: Uploading/Refreshing Cover for ' + book.title) - if not book.thumbnail and book.thumbnail[-1]: + if not book.thumbnail or not book.thumbnail[-1]: return cursor = connection.cursor()