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.
This commit is contained in:
abhi1992002
2026-02-17 12:32:35 +05:30
parent 347e450728
commit 728d82739d

View File

@@ -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))