Fix black formatting: collapse f-string in error message

This commit is contained in:
Abhijoy Sarkar 2026-03-31 16:17:41 +05:30
parent ceb5b5df8c
commit 109e0a6d94

View file

@ -157,10 +157,7 @@ class PromptGuardGuardrail(CustomGuardrail):
if self.block_on_error:
raise GuardrailRaisedException(
guardrail_name=self.guardrail_name,
message=(
f"PromptGuard API unreachable "
f"(block_on_error=True): {exc}"
),
message=f"PromptGuard API unreachable (block_on_error=True): {exc}",
) from exc
return inputs