MCPcopy Index your code
hub / github.com/OpenBMB/ChatDev / handle_security_error

Function handle_security_error

utils/error_handler.py:32–34  ·  view source on GitHub ↗

Handle security errors.

(request: Request, exc: SecurityError)

Source from the content-addressed store, hash-verified

30
31
32async def handle_security_error(request: Request, exc: SecurityError) -> JSONResponse:
33 """Handle security errors."""
34 return await handle_mac_exception(request, exc)
35
36
37async def handle_configuration_error(request: Request, exc: ConfigurationError) -> JSONResponse:

Callers

nothing calls this directly

Calls 1

handle_mac_exceptionFunction · 0.85

Tested by

no test coverage detected