From ea4863f19512168e38d5fad4f180c6d43587f963 Mon Sep 17 00:00:00 2001 From: misyaguziya <53165965+misyaguziya@users.noreply.github.com> Date: Tue, 25 Nov 2025 18:43:16 +0900 Subject: [PATCH] =?UTF-8?q?=E5=85=A5=E3=82=8C=E8=BE=BC=E3=81=BF=E5=BF=98?= =?UTF-8?q?=E3=82=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 --- src-python/models/translation/translation_translator.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src-python/models/translation/translation_translator.py b/src-python/models/translation/translation_translator.py index 4023bcc4..175a84ba 100644 --- a/src-python/models/translation/translation_translator.py +++ b/src-python/models/translation/translation_translator.py @@ -233,7 +233,10 @@ class Translator: Returns True if Ollama is reachable, False otherwise. """ self.ollama_client = OllamaClient(root_path=root_path) - return self.ollama_client.authenticationCheck() + result = self.ollama_client.authenticationCheck() + if result is False: + self.ollama_client = None + return result def getOllamaModelList(self, root_path: str = None) -> bool: """Initialize Ollama client and fetch available models.