From 12fffc051e45e640d6b3cbfdabf56f74361d6126 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 16 Oct 2011 17:18:26 +0530 Subject: [PATCH] ... --- src/calibre/devices/prs505/driver.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/calibre/devices/prs505/driver.py b/src/calibre/devices/prs505/driver.py index 4d9c66aaa8..bfce4fa1be 100644 --- a/src/calibre/devices/prs505/driver.py +++ b/src/calibre/devices/prs505/driver.py @@ -207,8 +207,11 @@ class PRS505(USBMS): c = self.initialize_XML_cache() blists = {} for i in c.paths: - if booklists[i] is not None: - blists[i] = booklists[i] + try: + if booklists[i] is not None: + blists[i] = booklists[i] + except IndexError: + pass opts = self.settings() if opts.extra_customization: collections = [x.strip() for x in