CCI-Tools / cate

ESA CCI Toolbox (Cate)
MIT License
50 stars 15 forks source link

Fixed potential progress state stack corruption #1007

Closed forman closed 3 years ago

forman commented 3 years ago

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.