Skip to content

Commit de8a85a

Browse files
authored
Merge pull request #1303 from tisnik/lcore-1438-better-string-format
LCORE-1438: better string format
2 parents be115c9 + e9304cf commit de8a85a

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/app/endpoints/a2a.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ async def _process_task_streaming( # pylint: disable=too-many-locals
340340
stream = await client.responses.create(**responses_params.model_dump())
341341
except APIConnectionError as e:
342342
error_message = (
343-
f"Unable to connect to Llama Stack backend service: {str(e)}. "
343+
f"Unable to connect to Llama Stack backend service: {e!s}. "
344344
"The service may be temporarily unavailable. Please try again later."
345345
)
346346
logger.error(

src/app/endpoints/health.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ async def get_providers_health_statuses() -> list[ProviderHealthStatus]:
9191
ProviderHealthStatus(
9292
provider_id="unknown",
9393
status=HealthStatus.ERROR.value,
94-
message=f"Failed to initialize health check: {str(e)}",
94+
message=f"Failed to initialize health check: {e!s}",
9595
)
9696
]
9797

0 commit comments

Comments
 (0)