View Single Post
Old 04-23-2021, 09:25 PM   #1
OldLincoln
Zealot
OldLincoln ought to be getting tired of karma fortunes by now.OldLincoln ought to be getting tired of karma fortunes by now.OldLincoln ought to be getting tired of karma fortunes by now.OldLincoln ought to be getting tired of karma fortunes by now.OldLincoln ought to be getting tired of karma fortunes by now.OldLincoln ought to be getting tired of karma fortunes by now.OldLincoln ought to be getting tired of karma fortunes by now.OldLincoln ought to be getting tired of karma fortunes by now.OldLincoln ought to be getting tired of karma fortunes by now.OldLincoln ought to be getting tired of karma fortunes by now.OldLincoln ought to be getting tired of karma fortunes by now.
 
OldLincoln's Avatar
 
Posts: 103
Karma: 1961918
Join Date: Feb 2012
Device: FBReader
5.16.1 Error in Date Type Custom Field

First appeared in 5.16.1. I have a custom field (Date Read) that I populate when marking books completed. The error code states:


calibre, version 5.16.1
ERROR: Unhandled exception: <b>AttributeError</b>:'NoneType' object has no attribute 'year'

calibre 5.16.1 [64bit] embedded-python: True is64bit: True
Windows-10-10.0.19041 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.19041')
Python 3.8.5
Windows: ('10', '10.0.19041', '', 'Multiprocessor Free')
Interface language: None
Successfully initialized third party plugins: DeDRM (7, 0, 3) && Count Pages (1, 11, 0) && Find Duplicates (1, 8, 5) && Quality Check (1, 11, 2)
Traceback (most recent call last):
File "calibre\gui2\library\delegates.py", line 55, in updateEditorGeometry
File "calibre\gui2\library\delegates.py", line 428, in displayText
File "calibre\utils\date.py", line 173, in qt_to_dt
AttributeError: 'NoneType' object has no attribute 'year'
--------------------------------------


The Column Type is Date
Format for dates is M/d/yyyy
Default value is empty

Other items: Lookup name is read-date; Column heading is Date Read


Up to this version (many years) I would open field not enter anything then tab and it would populate today's date. Now I open field get the error, hit OK tab and it populates today's date. Minor error but may bite something going forward.


Thanks
Earle Pearce
OldLincoln is offline   Reply With Quote