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.
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.