From 6606491cb143c5b05bc6e991aceb957d38ad9899 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=81=8D=E5=85=AE=E6=83=9A=E5=85=AE?= <101191390+HIllya51@users.noreply.github.com> Date: Tue, 23 Jul 2024 20:41:53 +0800 Subject: [PATCH] fix --- LunaTranslator/LunaTranslator/gui/usefulwidget.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/LunaTranslator/LunaTranslator/gui/usefulwidget.py b/LunaTranslator/LunaTranslator/gui/usefulwidget.py index 8f6d814e..0e636380 100644 --- a/LunaTranslator/LunaTranslator/gui/usefulwidget.py +++ b/LunaTranslator/LunaTranslator/gui/usefulwidget.py @@ -1690,7 +1690,8 @@ class listediter(LDialog): self.internalrealname = [] for row, k in enumerate(lst): # 2 try: - namemapfunction(k) + if namemapfunction: + namemapfunction(k) except: continue self.internalrealname.append(k)