Skip to content

how to avoid session closed then visit #34908

@asukaminato0721

Description

@asukaminato0721
The Account object returned by get_account_by_email_with_case_fallback is accessed after the database session has already closed.

Often meet this, in rust we have life scope to avoid this.

But how to do this in python?

@dosu @gemini-code-assist any idea?

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions