Skip to content

openFortIO swallows all exceptions #1186

Description

@eivindjahren

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

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

Status
Reviewed

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions