From 342a63244fcbbfa60c414e5c7470cb056808e57d Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 14 Feb 2017 09:05:50 +0530 Subject: [PATCH] ... --- src/pyj/book_list/library_data.pyj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pyj/book_list/library_data.pyj b/src/pyj/book_list/library_data.pyj index 6a044ed7c9..9dc419d7d1 100644 --- a/src/pyj/book_list/library_data.pyj +++ b/src/pyj/book_list/library_data.pyj @@ -128,7 +128,7 @@ class ThumbnailCache: def get(self, book_id, width, height, callback): url = thumbnail_url(book_id, width, height) item = self.cache.get(url) - if item is None: + if not item: img = new Image() item = {'img':img, 'load_type':None, 'callbacks':v'[callback]'} img.onerror = self.load_finished.bind(None, item, 'error')