Editor - Report: UnboundLocalError: local variable 'raw' referenced before assignment

Bug #2034900 reported by ZoMk
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
calibre
Fix Released
Undecided
Unassigned

Bug Description

Edit e-book: searching for a character by clicking on a specific one in the Report window gives an error:

calibre, version 6.26.0
NAPAKA: Unhandled exception: <b>UnboundLocalError</b>:local variable 'raw' referenced before assignment

calibre 6.26 embedded-python: True
Windows-10-10.0.22621-SP0 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.22621')
Python 3.10.1
Windows: ('10', '10.0.22621', 'SP0', 'Multiprocessor Free')
Interface language: sl
Successfully initialized third party plugins: DeDRM (10, 0, 3) && Barnes & Noble (1, 5, 2) && Diaps Editing Toolbag (0, 4, 0) && Goodreads (1, 7, 9) && Kindle hi-res covers (0, 5, 0) && Modify ePub (1, 8, 1) && Open With (1, 8, 1) && Quality Check (1, 13, 6) && Resize Cover (1, 2, 0)
Traceback (most recent call last):
  File "calibre\gui2\tweak_book\reports.py", line 885, in double_clicked
  File "calibre\gui2\tweak_book\reports.py", line 913, in find_next_location
  File "calibre\gui2\tweak_book\editor\text.py", line 519, in find_text
UnboundLocalError: local variable 'raw' referenced before assignment

Revision history for this message
Kovid Goyal (kovid) wrote :

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

Changed in calibre:
status: New → Fix Released
Revision history for this message
ZoMk (zomk) wrote :

Such searching works weird now. Can find one and maybe the next or two more characters, then for the next one point to full paragraph or just freeze.

Revision history for this message
Kovid Goyal (kovid) wrote :

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

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.