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