From 728d82739de36e4ad9d1f6fd2d03f17bc87e48f4 Mon Sep 17 00:00:00 2001 From: abhi1992002 Date: Tue, 17 Feb 2026 12:32:35 +0530 Subject: [PATCH] refactor(api): improve formatting of exception handler registration - Reformatted the registration of the `FolderAlreadyExistsError` exception handler for better readability by adding line breaks. - This change enhances the clarity of the code structure in the REST API error handling section. --- autogpt_platform/backend/backend/api/rest_api.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/autogpt_platform/backend/backend/api/rest_api.py b/autogpt_platform/backend/backend/api/rest_api.py index b494fe8429..9eee931f46 100644 --- a/autogpt_platform/backend/backend/api/rest_api.py +++ b/autogpt_platform/backend/backend/api/rest_api.py @@ -281,7 +281,9 @@ async def validation_error_handler( app.add_exception_handler(PrismaError, handle_internal_http_error(500)) -app.add_exception_handler(FolderAlreadyExistsError, handle_internal_http_error(409, False)) +app.add_exception_handler( + FolderAlreadyExistsError, handle_internal_http_error(409, False) +) app.add_exception_handler(FolderValidationError, handle_internal_http_error(400, False)) app.add_exception_handler(NotFoundError, handle_internal_http_error(404, False)) app.add_exception_handler(NotAuthorizedError, handle_internal_http_error(403, False))