From 36c74e238cfbd1e95819d204f6ece3c2f7200a44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20K=C3=B6pf?= Date: Wed, 28 Dec 2022 14:22:53 +0100 Subject: [PATCH] rename handler function to --- backend/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/main.py b/backend/main.py index 7d7f42c3..a0745f01 100644 --- a/backend/main.py +++ b/backend/main.py @@ -14,7 +14,7 @@ app = fastapi.FastAPI(title=settings.PROJECT_NAME, openapi_url=f"{settings.API_V @app.exception_handler(OasstError) -async def http_exception_handler(request: fastapi.Request, ex: OasstError): +async def oasst_exception_handler(request: fastapi.Request, ex: OasstError): logger.error(f"{request.method} {request.url} failed: {repr(ex)}") return fastapi.responses.JSONResponse( status_code=ex.http_status_code, content={"message": ex.message, "error_code": ex.error_code}