From 87c2406cd8c32436acebaebfd031cd067c77a685 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 2 Jan 2012 09:19:31 +0530 Subject: [PATCH] Fix #910671 (Comms error when adding to library from Sony Reader) --- 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 0462e04a6e..38ed6fc8d1 100644 --- a/src/calibre/devices/prst1/driver.py +++ b/src/calibre/devices/prst1/driver.py @@ -239,7 +239,7 @@ class PRST1(USBMS): if booklists[0] is not None: self.update_device_database(booklists[0], collections, None) - if booklists[1] is not None: + if len(booklists) > 1 and booklists[1] is not None: self.update_device_database(booklists[1], collections, 'carda') USBMS.sync_booklists(self, booklists, end_session=end_session)