mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-28 08:04:13 +08:00
Update dev_chatgpt.py
This commit is contained in:
parent
3ffbe70154
commit
fe14b4184e
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user