Closed GuGuMao8698 closed 1 week ago
使用KeywordGacha导入指令词典,在完成全部翻译后,报错如下: { [GlossaryChecker] 开始执行后处理 ...
0%| | 0/485 [00:00<?, ?it/s] Exception in thread Thread-3 (translation_start_target): Traceback (most recent call last): File "threading.py", line 1075, in _bootstrap_inner File "threading.py", line 1012, in run File "Module_Folders\Translator.py", line 280, in translation_start_target File "Module_Folders\Translator.py", line 327, in translation_post_process File "Base\PluginManager.py", line 45, in broadcast_event File "F:\Download\AiNiee-Beta\dist\Plugin_Scripts\GlossaryChecker\GlossaryChecker.py", line 50, in on_event self.on_postprocess_text(event, configurator, data, items, project) File "F:\Download\AiNiee-Beta\dist\Plugin_Scripts\GlossaryChecker\GlossaryChecker.py", line 74, in on_postprocess_text source_text_replaced = self.replace_name_code(source_text, names, nicknames) ^^^^^ UnboundLocalError: cannot access local variable 'names' where it is not associated with a value }
使用KeywordGacha导入指令词典,在完成全部翻译后,报错如下: { [GlossaryChecker] 开始执行后处理 ...
0%| | 0/485 [00:00<?, ?it/s] Exception in thread Thread-3 (translation_start_target): Traceback (most recent call last): File "threading.py", line 1075, in _bootstrap_inner File "threading.py", line 1012, in run File "Module_Folders\Translator.py", line 280, in translation_start_target File "Module_Folders\Translator.py", line 327, in translation_post_process File "Base\PluginManager.py", line 45, in broadcast_event File "F:\Download\AiNiee-Beta\dist\Plugin_Scripts\GlossaryChecker\GlossaryChecker.py", line 50, in on_event self.on_postprocess_text(event, configurator, data, items, project) File "F:\Download\AiNiee-Beta\dist\Plugin_Scripts\GlossaryChecker\GlossaryChecker.py", line 74, in on_postprocess_text source_text_replaced = self.replace_name_code(source_text, names, nicknames) ^^^^^ UnboundLocalError: cannot access local variable 'names' where it is not associated with a value }