The following will not raise a ValueError as openFortIO swallows it.
with openFortIO(str(filepath), fmt_file=False) as f:
raise ValueError()
This is very surprising behavior and should be changed for version 7.
Code here: https://github.com/equinor/resdata/blob/main/python/resdata/resfile/fortio.py#L38-L63
The following will not raise a ValueError as openFortIO swallows it.
This is very surprising behavior and should be changed for version 7.
Code here: https://github.com/equinor/resdata/blob/main/python/resdata/resfile/fortio.py#L38-L63