Skip to content

Commit 503e458

Browse files
committed
Add error handling to docstring.
1 parent c8de628 commit 503e458

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/mdio/segy/compat.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,9 @@ def revision_encode(binary_header: dict, version_str: str) -> dict:
113113
114114
Returns:
115115
The updated binary header with the encoded revision.
116+
117+
Raises:
118+
InvalidMDIOError: Raised when binary header in MDIO is broken.
116119
"""
117120
version_obj = version.parse(version_str)
118121
if version_obj > version.parse("0.7.4"):

0 commit comments

Comments
 (0)