diff --git a/LunaTranslator/LunaTranslator/translator/dev_chatgpt.py b/LunaTranslator/LunaTranslator/translator/dev_chatgpt.py index 5f46e750..fe38c910 100644 --- a/LunaTranslator/LunaTranslator/translator/dev_chatgpt.py +++ b/LunaTranslator/LunaTranslator/translator/dev_chatgpt.py @@ -32,7 +32,7 @@ class TS(basetransdev): ) ) if "This content may violate our usage policies." == res: - if error: + if error or len(self.last) == 0: raise Exception("This content may violate our usage policies.") return self.last self.last = res