From d65829175ea630ca3f6682f207ba1688e9b96eb7 Mon Sep 17 00:00:00 2001 From: misyaguziya Date: Sun, 14 Jan 2024 13:13:43 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B[bugfix]=20Model=20:=20deepl=20auth?= =?UTF-8?q?key=20=E5=89=8A=E9=99=A4=E6=99=82=E3=81=AB=20=E7=BF=BB=E8=A8=B3?= =?UTF-8?q?=E3=82=A8=E3=83=B3=E3=82=B8=E3=83=B3=E3=81=AE"DeepL=5FAPI"?= =?UTF-8?q?=E3=81=8C=E5=89=8A=E9=99=A4=E3=81=95=E3=82=8C=E3=81=AA=E3=81=84?= =?UTF-8?q?=E5=95=8F=E9=A1=8C=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model.py b/model.py index 3f89ad12..01277bb5 100644 --- a/model.py +++ b/model.py @@ -123,7 +123,7 @@ class Model: if source_lang in languages and target_lang in languages: compatible_engines.append(engine) if "DeepL_API" in compatible_engines: - if self.translator.deepl_client is None: + if config.AUTH_KEYS["DeepL_API"] is None: compatible_engines.remove('DeepL_API') return compatible_engines