View Single Post
Old 01-01-2012, 01:22 AM   #317
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
Bug with "Move to list"

I keep meaning to report a bug. Whenever I do a "Move to list", I get an error. The details are:

Code:
calibre, version 0.8.33
ERROR: Unhandled exception: <b>NameError</b>:global name 'previous' is not defined

Traceback (most recent call last):
  File "calibre_plugins.reading_list.action", line 273, in _move_selected_to_list
  File "calibre_plugins.reading_list.action", line 449, in move_books_to_list
NameError: global name 'previous' is not defined
I don't know how long this has been hapening, but the above is with the version you posted earlier for JimmXinu.

After looking at the code, I fixed it by copying
Code:
previous = self.gui.library_view.currentIndex()
from one of the other methods to just after the parameter checking in move_books_to_list.
davidfor is offline   Reply With Quote