Browse Source

fix lint errors in tutorial002.py

pull/14040/head
Shaptain 11 months ago
parent
commit
a881fc36dc
  1. 2
      docs_src/handling_errors/tutorial002.py

2
docs_src/handling_errors/tutorial002.py

@ -7,7 +7,7 @@ items = {"foo": "The Foo Wrestlers"}
@app.get("/items-header/{item_id}")
async def read_item_header(item_id: str):
if item_id not in items:
raise HTTPException(
status_code=404,

Loading…
Cancel
Save