Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to discard pending changes on exception #59

Open
egroeper opened this issue May 13, 2024 · 1 comment
Open

Option to discard pending changes on exception #59

egroeper opened this issue May 13, 2024 · 1 comment

Comments

@egroeper
Copy link

Currently when using APIClient as context manager and an exception is raised, the session is closed but stays in the session list containing all changes and locks.

I would like to have a variant, where all pending changes made in the APIClient session are automatically discarded, when an exception occurs.

@chkp-edenbr
Copy link
Contributor

Hi @egroeper,
Thank you for suggesting this, we will take a look into a valid solution and update you
Regards,
Eden Brillant

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

No branches or pull requests

2 participants