equinor / fmu-ensemble

Python objectification of reservoir model ensembles left on disk by ERT.
GNU General Public License v3.0
12 stars 19 forks source link

Catch a possible error in STATUS files #252

Closed berland closed 3 weeks ago

berland commented 3 weeks ago

Instead of crashing, we should ignore the line in a garbled STATUS file like we do for other ways it can be garbled.

xjules commented 3 weeks ago

This should include an issue and at least an explanation about the problem.

berland commented 3 weeks ago

This should include an issue and at least an explanation about the problem.

Fixed!

berland commented 3 weeks ago

This PR is doing an educated guess on what could have happened when the traceback in the original issue occured, adds a test to reproduce it, and then catches the exception to handle the error gracefully.