Yes, I am running as calibre-debug -g; but how do I tell where it is bombing out?
I have added more debug statements:
Code:
current_book_count += 1
book.in_library = None
print('checking for uuid ', book.uuid, getattr(book, 'uuid', None))
if book.uuid in self.db_book_uuid_cache:
print('getattr(book, uuid, None) succeeded: ', uuid)
id_ = db_book_uuid_cache[book.uuid]
if updateq(id_, book):
update_book(id_, book)
book.in_library = 'UUID'
# ensure that the correct application_id is set
book.application_id = id_
continue
print('getattr(book, uuid, None) failed: ', uuid)
Code:
booklist: [<calibre.devices.smart_device_app.driver.SDBook object at 0x7f88b07d9070>, <calibre.devices.smart_device_app.driver.SDBook object at 0x7f88b07ca4f0>, <calibre.devices.smart_device_app.driver.SDBook object at 0x7f88b07cad00>, <calibre.devices.smart_device_app.driver.SDBook object at 0x7f88c3d6e340>, <calibre.devices.smart_device_app.driver.SDBook object at 0x7f88c3d6e520>, <calibre.devices.smart_device_app.driver.SDBook object at 0x7f88c3d6e430>, <calibre.devices.smart_device_app.driver.SDBook object at 0x7f88c3d5edc0>]
processing book: The Color of Magic 8ed92285-8d1c-45c3-b756-f5f39fca4b52
checking for uuid 8ed92285-8d1c-45c3-b756-f5f39fca4b52 8ed92285-8d1c-45c3-b756-f5f39fca4b52
while I see my initial print statement, I should get a succeeded or failed from the subsequent 2 print statements, but see nothing.