refactor: format error message to not exceed line length limit

This commit is contained in:
Mason Daugherty 2025-07-25 15:29:48 -04:00
parent 6d19e1ae15
commit 20f4736999
No known key found for this signature in database

View File

@ -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 = (