From 20f4736999f57fed29ae987958ef69ca753ab273 Mon Sep 17 00:00:00 2001 From: Mason Daugherty Date: Fri, 25 Jul 2025 15:29:48 -0400 Subject: [PATCH] refactor: format error message to not exceed line length limit --- libs/partners/ollama/langchain_ollama/_utils.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libs/partners/ollama/langchain_ollama/_utils.py b/libs/partners/ollama/langchain_ollama/_utils.py index f3cd6fe9a4d..3da9981621f 100644 --- a/libs/partners/ollama/langchain_ollama/_utils.py +++ b/libs/partners/ollama/langchain_ollama/_utils.py @@ -29,7 +29,10 @@ def validate_model(client: Client, model_name: str) -> None: ) raise ValueError(msg) except ConnectError as e: - msg = "Failed to connect to Ollama. Please check that Ollama is downloaded, running and accessible. https://ollama.com/download" # noqa: E501 + msg = ( + "Failed to connect to Ollama. Please check that Ollama is downloaded, " + "running and accessible. https://ollama.com/download" + ) raise ValueError(msg) from e except ResponseError as e: msg = (