mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-29 16:44: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 "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.")
|
raise Exception("This content may violate our usage policies.")
|
||||||
return self.last
|
return self.last
|
||||||
self.last = res
|
self.last = res
|
||||||
|
Loading…
x
Reference in New Issue
Block a user