diff --git a/litellm/proxy/guardrails/guardrail_hooks/promptguard/promptguard.py b/litellm/proxy/guardrails/guardrail_hooks/promptguard/promptguard.py index 8c5001249ad..d9c4ecb61ae 100644 --- a/litellm/proxy/guardrails/guardrail_hooks/promptguard/promptguard.py +++ b/litellm/proxy/guardrails/guardrail_hooks/promptguard/promptguard.py @@ -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