Quote:
Originally Posted by kovidgoyal
I'd rather fix it for __setitem__ just in case there are any places in calibre that do the same thing (or someone adds such code to calibre in the future).
|
There is that.
You fix looks good. Or at least it would if I wasn't getting the following with it...
Code:
calibre, version 2.20.0
ERROR: Startup error: There was an error during calibre startup. Parts of calibre may not function. Click Show details to learn more.
Traceback (most recent call last):
File "D:\Development\GitHub\calibre\src\calibre\gui2\main.py", line 245, in initialize_db_stage2
File "D:\Development\GitHub\calibre\src\calibre\gui2\main.py", line 182, in start_gui
File "D:\Development\GitHub\calibre\src\calibre\gui2\ui.py", line 361, in initialize
File "D:\Development\GitHub\calibre\src\calibre\gui2\tag_browser\ui.py", line 33, in init_tag_browser_mixin
File "D:\Development\GitHub\calibre\src\calibre\gui2\tag_browser\view.py", line 181, in set_database
File "D:\Development\GitHub\calibre\src\calibre\gui2\tag_browser\model.py", line 282, in set_database
File "D:\Development\GitHub\calibre\src\calibre\db\backend.py", line 118, in set
File "D:\Development\GitHub\calibre\src\calibre\db\backend.py", line 112, in __setitem__
AttributeError: 'apsw.Cursor' object has no attribute 'fetchone'