Error when trying to edit Undefined Date

Bug #1925378 reported by Kevin
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Fix Released

Bug Description

When trying to edit an undefined date column by pressing F2 I get the following error.

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: en_GB
Successfully initialized third party plugins: DeDRM (7, 2, 0) && Count Pages (1, 11, 0) && EpubSplit (3, 0, 0) && Favourites Menu (1, 0, 5) && Goodreads (1, 5, 1) && Goodreads Sync (1, 15, 1)
Traceback (most recent call last):
  File "calibre\gui2\library\", line 55, in updateEditorGeometry
  File "calibre\gui2\library\", line 428, in displayText
  File "calibre\utils\", line 173, in qt_to_dt
AttributeError: 'NoneType' object has no attribute 'year'

Workaround is to enter the date from the edit metadata screen.

Charles Haley (cbhaley)
Changed in calibre:
status: New → Fix Committed
Revision history for this message
Kovid Goyal (kovid) wrote : Fixed in master

Fixed in branch master. The fix will be in the next release. calibre is usually released every alternate Friday.

 status fixreleased

Changed in calibre:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers