View Single Post
Old 09-20-2017, 09:50 AM   #371
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by glire View Post
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.
davidfor is offline   Reply With Quote