From 6a41bc037b49890a0d89d8e3dcd15cfb4e572c45 Mon Sep 17 00:00:00 2001 From: Aykhan Date: Mon, 18 Sep 2023 14:27:26 +0400 Subject: [PATCH] Test ruff action --- src/app/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/main.py b/src/app/main.py index c012f3b..cbd2632 100644 --- a/src/app/main.py +++ b/src/app/main.py @@ -31,9 +31,9 @@ app.add_exception_handler(RateLimitExceeded, _rate_limit_exceeded_handler) @app.exception_handler(ValidationError) async def validation_exception_handler(request, exc): - return await request_validation_exception_handler(request, exc) + return await request_validation_exception_handler(request, exc) # Test ruff action @app.exception_handler(404) async def custom_404_handler(_, __): - return FileResponse(settings.STATIC_FOLDER / '404.jpg') # + return FileResponse(settings.STATIC_FOLDER / '404.jpg')