]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
✏ Reword sentence about handling errors (#1993)
authorSarmast Bilawal Khuhro <khuhroproeza@gmail.com>
Thu, 17 Mar 2022 20:24:34 +0000 (21:24 +0100)
committerGitHub <noreply@github.com>
Thu, 17 Mar 2022 20:24:34 +0000 (20:24 +0000)
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
docs/en/docs/tutorial/handling-errors.md

index 89f96176d699773d3d7566a648d73f58727baf17..82e1662663852f4ee1fa0eaacabf15b084a7221d 100644 (file)
@@ -252,9 +252,7 @@ from starlette.exceptions import HTTPException as StarletteHTTPException
 
 ### Re-use **FastAPI**'s exception handlers
 
-You could also just want to use the exception somehow, but then use the same default exception handlers from **FastAPI**.
-
-You can import and re-use the default exception handlers from `fastapi.exception_handlers`:
+If you want to use the exception along with the same default exception handlers from  **FastAPI**, You can import and re-use the default exception handlers from `fastapi.exception_handlers`:
 
 ```Python hl_lines="2-5  15  21"
 {!../../../docs_src/handling_errors/tutorial006.py!}