johnthagen
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
docs/en/docs/tutorial/handling-errors.md
|
|
@ -39,7 +39,7 @@ This also means that if you are inside a utility function that you are calling i |
|
|
|
|
|
|
|
The benefit of raising an exception over `return`ing a value will be more evident in the section about Dependencies and Security. |
|
|
|
|
|
|
|
In this example, when the client request an item by an ID that doesn't exist, raise an exception with a status code of `404`: |
|
|
|
In this example, when the client requests an item by an ID that doesn't exist, raise an exception with a status code of `404`: |
|
|
|
|
|
|
|
```Python hl_lines="11" |
|
|
|
{!../../../docs_src/handling_errors/tutorial001.py!} |
|
|
|