From 109e0a6d9484cad90128ad18936bb19682e658eb Mon Sep 17 00:00:00 2001 From: Abhijoy Sarkar Date: Tue, 31 Mar 2026 16:17:41 +0530 Subject: [PATCH] Fix black formatting: collapse f-string in error message --- .../guardrails/guardrail_hooks/promptguard/promptguard.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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