Error in function mode in editor S&R
To renumber notes
Using:
def replace(match, number, file_name, metadata, dictionaries, data, functions, *args, **kwargs):
section_number = '%d' % number
return match.group(1) + section_number
With the find expression:
(\[)(\d+)
Result:
calibre, version 2.11.0
ERROR: Excepción no considerada: <b>AttributeError</b>:'NoneType' object has no attribute 'getvalue'
calibre 2.11 isfrozen: True is64bit: False
Windows-7-6.1.7601-SP1 Windows ('32bit', 'WindowsPE')
('Windows', '7', '6.1.7601')
Python 2.7.8
Windows: ('7', '6.1.7601', 'SP1', 'Multiprocessor Free')
Successfully initialized third party plugins: DeDRM && Prince PDF
Traceback (most recent call last):
File "site-packages\calibre\gui2\tweak_book\boss.py", line 811, in search
File "site-packages\calibre\gui2\tweak_book\search.py", line 1343, in run_search
File "site-packages\calibre\gui2\tweak_book\search.py", line 1319, in do_all
File "site-packages\calibre\gui2\tweak_book\search.py", line 1190, in show_function_debug_output
AttributeError: 'NoneType' object has no attribute 'getvalue'
|