From 6a41bc037b49890a0d89d8e3dcd15cfb4e572c45 Mon Sep 17 00:00:00 2001 From: Aykhan <aykhan.shahs0@gmail.com> Date: Mon, 18 Sep 2023 14:27:26 +0400 Subject: [PATCH 1/2] 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') From 16b85ff7d81f5f4555dc986c99a9bf0eb1a5d1d6 Mon Sep 17 00:00:00 2001 From: Aykhan <aykhan.shahs0@gmail.com> Date: Mon, 18 Sep 2023 14:40:45 +0400 Subject: [PATCH 2/2] Test ruff action --- src/app/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/main.py b/src/app/main.py index cbd2632..b6943cb 100644 --- a/src/app/main.py +++ b/src/app/main.py @@ -31,7 +31,7 @@ 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) # Test ruff action + return await request_validation_exception_handler(request, exc) @app.exception_handler(404)