🐛[bugfix] Model : Translation DeepL Pro版で認証できない問題を修正

This commit is contained in:
misyaguziya committed 2024-04-30 00:51:30 +09:00
1 parent 74f311fb2a
commit adf0272038
1 file changed
+1 -1
+1 -1
View File
@@ -577,7 +577,7 @@ def callbackSetCtranslate2WeightType(value):
def callbackSetDeeplAuthKey(value):
print("callbackSetDeeplAuthKey", str(value))
view.clearNotificationMessage()
if len(value) == 39:
if len(value) == 36 or len(value) == 39:
result = model.authenticationTranslatorDeepLAuthKey(auth_key=value)
if result is True:
key = value