Skip to content

Commit f376a04

Browse files
tasansalsrib
authored andcommitted
Update parsers.py
1 parent 840714d commit f376a04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mdio/segy/parsers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def parse_text_header(segy_handle: segyio.SegyFile) -> list[str]:
6363
Returns:
6464
Parsed text header in list with lines as elements.
6565
"""
66-
text_header = segy_handle.text[0].decode()
66+
text_header = segy_handle.text[0].decode(errors='ignore')
6767
text_header = [
6868
text_header[char_idx : char_idx + 80]
6969
for char_idx in range(0, len(text_header), 80)

0 commit comments

Comments
 (0)