Skip to content

hw 10#2

Open
m1rageg wants to merge 1 commit into
p1v2:mainfrom
m1rageg:main
Open

hw 10#2
m1rageg wants to merge 1 commit into
p1v2:mainfrom
m1rageg:main

Conversation

@m1rageg

@m1rageg m1rageg commented May 14, 2023

Copy link
Copy Markdown

No description provided.

Comment thread app/main.py
book = db.query(Book).filter(Book.id == book_id).first()

if book is None:
db.close()

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

db.close() better to do in finally block.

@p1v2 p1v2 left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants