View Single Post
Old 02-21-2015, 04:19 AM   #11
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 kovidgoyal View Post
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'
davidfor is offline   Reply With Quote