mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-25 20:43:23 +00:00
refactor: format error message to not exceed line length limit
This commit is contained in:
parent
6d19e1ae15
commit
20f4736999
@ -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 = (
|
||||
|
Loading…
Reference in New Issue
Block a user