Quote:
Originally Posted by glire
So, the pluguin (v.1.6.0) stopped working suddenly. It fetch the books but when I try to import the annotations I get this error message:
Traceback (most recent call last):
File "calibre_plugins.annotations.action", line 293, in fetch_device_annotations
File "calibre_plugins.annotations.action", line 1012, in process_selected_books
File "calibre_plugins.annotations.action", line 150, in add_annotations_to_calibre
File "calibre_plugins.annotations.annotations", line 251, in merge_annotations
File "calibre_plugins.annotations.annotations_db", line 241, in capture_content
TypeError: 'NoneType' object has no attribute '__getitem__'
I tried using the last beta but the error continue appering.
|
The error is in code that is interpreting the annotations previously fetched ready to add the new annotations. It looks like one of the existing annotations has been changed and no longer contains the expected HTML code. If you can work out which book it is, then you can fix or remove the annotation.
I'll have a think of how to handle this better, but, I'm not sure if there is anything that can be done except removing the existing annotation or reporting an error and not updating it.