mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-07 08:26:10 +00:00
Update litellm/proxy/guardrails/guardrail_hooks/block_code_execution/block_code_execution.py
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
parent
62f33ac337
commit
1dbdb0dbdd
1 changed files with 3 additions and 0 deletions
|
|
@ -317,6 +317,9 @@ class BlockCodeExecutionGuardrail(CustomGuardrail):
|
|||
except HTTPException:
|
||||
status = "guardrail_intervened"
|
||||
raise
|
||||
except ModifyResponseException:
|
||||
status = "guardrail_intervened"
|
||||
raise
|
||||
except Exception as e:
|
||||
status = "guardrail_failed_to_respond"
|
||||
exception_str = str(e)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue