From 256ddda1f9c87ec9512ad01874c543c31dac17c2 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 12 Nov 2011 11:23:57 +0530 Subject: [PATCH] ... --- src/calibre/devices/prst1/driver.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/calibre/devices/prst1/driver.py b/src/calibre/devices/prst1/driver.py index a18c2f0eda..ea0f21871f 100644 --- a/src/calibre/devices/prst1/driver.py +++ b/src/calibre/devices/prst1/driver.py @@ -505,6 +505,8 @@ class PRST1(USBMS): debug_print('PRST1: Uploading/Refreshing Cover for ' + book.title) if (not book.thumbnail or isinstance(book.thumbnail, ImageWrapper) or not book.thumbnail[-1]): + # If the thumbnail is an ImageWrapper instance, it refers to a book + # not in the calibre library return cursor = connection.cursor()