Fix #910671 (Comms error when adding to library from Sony Reader)

This commit is contained in:
Kovid Goyal 2012-01-02 09:19:31 +05:30
parent f8c6606bc1
commit 87c2406cd8

View File

@ -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)