When a TOC entry points to a non-existent file, it shows a message telling you the file does not exist. But, when you click OK, another error occurs:
Spoiler:
calibre, version 5.31.1
ERRO: Exceção sem tratamento: <b>AttributeError</b>:'int' object has no attribute 'go_to_anchor'
calibre 5.31.1 [64bit] embedded-python: True is64bit: True
Windows-10-10.0.19041 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.19041')
Python 3.8.5
Windows: ('10', '10.0.19041', '', 'Multiprocessor Free')
Interface language: pt_BR
Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 45, 0) && DeDRM (7, 2, 1) && Package KFX (from KFX Input) (1, 45, 0) && ACE (1, 1, 3) && Access Aide (0, 1, 9) && Annotations (1, 16, 0) && Calibre Power Search Plugin (2, 1, 1) && Clean Comments (0, 1, 0) && Comments Cleaner (1, 5, 0) && Count Pages (1, 11, 1) && Diaps Editing Toolbag (0, 3, 7) && EpubCheck (0, 2, 3) && EpubMerge (2, 11, 0) && EpubSplit (3, 1, 0) && Find Duplicates (1, 8, 10) && Goodreads (1, 5, 1) && Goodreads Sync (1, 15, 1) && KFX metadata reader (from KFX Input) (1, 45, 0) && KFX Input (1, 45, 0) && Set KFX metadata (from KFX Output) (1, 57, 0) && KFX Output (1, 57, 0) && KindleUnpack - The Plugin (0, 83, 0) && LanguageTool (0, 1, 1) && Open With (1, 5, 13) && ScrambleEbook (0, 4, 5) && Skoob Books (1, 5, 2) && Skoob Sync (0, 4, 0) && Sum Column (0, 3, 1) && TTS to MP3 (0, 5, 9)
Traceback (most recent call last):
File "calibre\gui2\tweak_book\boss.py", line 1360, in link_clicked
AttributeError: 'int' object has no attribute 'go_to_anchor'