Skip to content

Option to discard pending changes on exception #59

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

Open
egroeper opened this issue May 13, 2024 · 2 comments
Open

Option to discard pending changes on exception #59

egroeper opened this issue May 13, 2024 · 2 comments

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

@cd4vi5
Copy link

cd4vi5 commented May 2, 2025

Hello,

Has there been any further consideration/development for this?

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

3 participants