Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Project 2/books2.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ async def update_book(book: BookRequest):
if BOOKS[i].id == book.id:
BOOKS[i] = book
book_changed = True
break
if not book_changed:
raise HTTPException(status_code=404, detail='Item not found')

Expand Down