mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-09 03:18:44 +00:00
fix(lint): add reason to BLE001 noqa to satisfy type-discipline gate (LIT003)
The type-discipline budget ratcheted LIT003's ceiling to 292 as upstream fixed reasonless suppressions, so our '# noqa: BLE001' (code but no reason) tipped the total to 293 and failed CI. Add a reason per the required '# noqa: CODE # <reason>' shape.
This commit is contained in:
parent
ba4a3ba057
commit
2f2e1ab9b4
1 changed files with 1 additions and 1 deletions
|
|
@ -374,7 +374,7 @@ class DeepKeepGuardrail(CustomGuardrail):
|
||||||
)
|
)
|
||||||
except httpx.RequestError as e:
|
except httpx.RequestError as e:
|
||||||
return self._handle_guardrail_request_error(e, inputs, input_type, logging_obj)
|
return self._handle_guardrail_request_error(e, inputs, input_type, logging_obj)
|
||||||
except Exception as e: # noqa: BLE001
|
except Exception as e: # noqa: BLE001 # route unexpected errors through fail-open/closed handling
|
||||||
return self._handle_guardrail_request_error(e, inputs, input_type, logging_obj, is_unreachable=False)
|
return self._handle_guardrail_request_error(e, inputs, input_type, logging_obj, is_unreachable=False)
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue