(request: Request, exc: Exception)
| 38 | |
| 39 | @app.exception_handler(Exception) |
| 40 | async def general_exception_handler(request: Request, exc: Exception): |
| 41 | return JSONResponse( |
| 42 | status_code=500, |
| 43 | content={ |
| 44 | "detail": "Internal Server Error", |
| 45 | "error_message": str(exc), |
| 46 | }, |
| 47 | ) |
| 48 | |
| 49 | |
| 50 | for module_function in modules_functions: |
nothing calls this directly
no outgoing calls
no test coverage detected