Fix errors found by translation fixer tool

This commit is contained in:
Yurii Motov 2026-01-20 11:13:27 +01:00
parent 99e1367663
commit 4eb0b839b9
2 changed files with 20 additions and 3 deletions

View File

@ -129,7 +129,24 @@ Pythonの例外なので、`return`ではなく、`raise`です。
{* ../../docs_src/handling_errors/tutorial004_py39.py hl[2,14:19] *}
これで、`/items/foo`にアクセスすると、デフォルトのJSONエラーの代わりに以下のテキスト版を取得します:
これで、`/items/foo`にアクセスすると、以下のデフォルトのJSONエラーの代わりに:
```JSON
{
"detail": [
{
"loc": [
"path",
"item_id"
],
"msg": "value is not a valid integer",
"type": "type_error.integer"
}
]
}
```
以下のテキスト版を取得します:
```
Validation errors:

View File

@ -197,7 +197,7 @@ $ which python
<div class="termy">
``` console
```console
$ Get-Command python
C:\Users\user\code\awesome-project\.venv\Scripts\python
@ -808,7 +808,7 @@ Traceback (most recent call last):
</div>
しかし、その仮想環境を無効化し、 `prisoner-of-azkaban` (アズカバンの囚人)のための新しい仮想環境を有効にすれば、 `python` を実行したときに `prisoner-of-azkaban` (アズカバンの囚人)の仮想環境の Python が使用されるようになります。
しかし、その仮想環境を無効化し、 `prisoner-of-askaban` のための新しい仮想環境を有効にすれば、 `python` を実行したときに `prisoner-of-azkaban` (アズカバンの囚人)の仮想環境の Python が使用されるようになります。
<div class="termy">