Fixed potential progress state stack corruption due to possible exceptions in open process.
We use context managers now to undo any progress state stack modifications.
I blindly converted the code, so its logic should be exactly the same as before - just more safe. I have not understood some code in cate.core.ds.XcubeProgressObserver and to me it seems wrongly implemented. Need to clarify in another PR.
Fixed potential progress state stack corruption due to possible exceptions in open process.
We use context managers now to undo any progress state stack modifications.
I blindly converted the code, so its logic should be exactly the same as before - just more safe. I have not understood some code in
cate.core.ds.XcubeProgressObserver
and to me it seems wrongly implemented. Need to clarify in another PR.