View Single Post
Old 05-23-2016, 09:42 PM   #1135
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 DNSB View Post
I added a few books and attempting to update the metadata triggers an error. When I selected the ebook listed as the last one being worked on and update that single item, the error is triggered. As near as I can tell, this happens when the ebook has nothing in the comments box as adding metadata removes the error.

Code:
calibre, version 2.57.1
ERROR: Unhandled exception: <b>TypeError</b>:object of type 'NoneType' has no len()

calibre 2.57.1 [64bit]  embedded-python: True is64bit: True
Windows-8-6.2.9200 Windows ('64bit', 'WindowsPE')
('Windows', '8', '6.2.9200')
Python 2.7.9
Windows: ('8', '6.2.9200', '', 'Multiprocessor Free')
Successfully initialized third party plugins: DeDRM && Modify ePub && SmartEject && Extract ISBN && Barnes & Noble && Kobo Utilities && Quality Check && Open With && Find Duplicates && Fantastic Fiction && Webscription && Goodreads && Obok DeDRM && FictionDB
Traceback (most recent call last):
  File "calibre_plugins.koboutilities.action", line 863, in update_metadata
  File "calibre_plugins.koboutilities.action", line 3558, in _update_metadata
TypeError: object of type 'NoneType' has no len()
Have fun....
And looking at the code, of course it will fail like that if there are no comments. It's a simple fix and I should be able to do it tonight.
davidfor is offline