Just installed this plugin and I've been setting up my books for the 2025 Reading Goal. I've just received a division by zero error. All I did was switch from 2025 to All and boom!
Code:
calibre, version 7.23.100
ERROR: Unhandled exception: <b>ZeroDivisionError</b>:division by zero
calibre 7.23.100 embedded-python: True
Windows-10-10.0.22631-SP0 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.22631')
Python 3.11.5
Windows: ('10', '10.0.22631', 'SP0', 'Multiprocessor Free')
Interface language: None
EXE path: C:\Program Files\Calibre2\calibre.exe
Successfully initialized third party plugins: DeACSM (0, 0, 16) && Gather KFX-ZIP (from KFX Input) (2, 19, 0) && DeDRM (10, 0, 9) && Package KFX (from KFX Input) (2, 19, 0) && Annotations (1, 17, 13) && Apple Books covers (0, 2, 0) && Barnes & Noble (1, 5, 6) && BookFusion Plugin (0, 8, 1) && Count Pages (1, 13, 6) && Diaps Editing Toolbag (0, 5, 0) && EpubCheck (0, 2, 5) && EpubMerge (3, 2, 0) && EpubSplit (3, 10, 0) && Favourites Menu (1, 3, 1) && Find Duplicates (1, 10, 9) && Hyphenate This! (0, 1, 3) && KFX metadata reader (from KFX Input) (2, 19, 0) && From KFX (2, 19, 0) && KFX Input (2, 19, 0) && Set KFX metadata (from KFX Output) (2, 13, 0) && KFX Output (2, 13, 0) && KePub Input (3, 6, 6) && KePub Metadata Reader (3, 4, 3) && KePub Metadata Writer (3, 4, 3) && KePub Output (3, 7, 2) && Kindle hi-res covers (0, 5, 1) && KindleUnpack - The Plugin (0, 83, 1) && Kobo Metadata (1, 9, 1) && Kobo Utilities (2, 17, 2) && KoboTouchExtended (3, 7, 3) && Modify ePub (1, 8, 5) && Quality Check (1, 13, 16) && Reading Goal (1, 8, 1) && Reading List (1, 15, 4) && ScrambleEbook (0, 6, 0) && TextDiff (1, 2, 4)
Traceback (most recent call last):
File "calibre_plugins.Reading_Goal.main", line 3442, in update_year
File "calibre_plugins.Reading_Goal.main", line 3255, in statistics_tree
ZeroDivisionError: division by zero