O/S: Windows 10 64 bit
Calibre version 6.26
I often call edit-book from the calibre reader after highlighting a portion of text. Normally, this will open the book in sigil, and jump to the specified text.
Now at version 6.26, the editor opens to the current chapter, but gives an error pop-up "UnboundLocalError: local variable 'raw' referenced before assignment", and does not position to the requested text string.
I tested this on several different books with the same result.
I regressed to the previous version, and confirmed that the issue is not present at v6.25 version.
The full error traceback is:
Code:
calibre, version 6.26.0
ERROR: Unhandled exception: <b>UnboundLocalError</b>:local variable 'raw' referenced before assignment
calibre 6.26 embedded-python: True
Windows-10-10.0.19045-SP0 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.19045')
Python 3.10.1
Windows: ('10', '10.0.19045', 'SP0', 'Multiprocessor Free')
Interface language: None
Successfully initialized third party plugins: DeDRM (7, 1, 0) && Count Pages (1, 13, 2) && FanFicFare (4, 27, 0)
Traceback (most recent call last):
File "calibre\gui2\__init__.py", line 721, in dispatch
File "calibre\gui2\tweak_book\job.py", line 84, in job_done
File "calibre\gui2\tweak_book\boss.py", line 411, in book_opened
File "calibre\gui2\tweak_book\boss.py", line 1157, in find_initial_text
File "calibre\gui2\tweak_book\editor\widget.py", line 322, in find_text
File "calibre\gui2\tweak_book\editor\text.py", line 519, in find_text
UnboundLocalError: local variable 'raw' referenced before assignment