Skip to content

Commit aec2d26

Browse files
✏ Reword sentence about handling errors (fastapi#1993)
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
1 parent d5d6eeb commit aec2d26

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

docs/en/docs/tutorial/handling-errors.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -252,9 +252,7 @@ from starlette.exceptions import HTTPException as StarletteHTTPException
252252

253253
### Re-use **FastAPI**'s exception handlers
254254

255-
You could also just want to use the exception somehow, but then use the same default exception handlers from **FastAPI**.
256-
257-
You can import and re-use the default exception handlers from `fastapi.exception_handlers`:
255+
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`:
258256

259257
```Python hl_lines="2-5 15 21"
260258
{!../../../docs_src/handling_errors/tutorial006.py!}

0 commit comments

Comments
 (0)