Skip to content

Commit b184026

Browse files
committed
legacy parser: format magic as d in error msg
This avoids `magic` being displayed as `np.int32(...)`.
1 parent a58985f commit b184026

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/stagpy/stagyyparsers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ def _legacy_header(
397397

398398
magic %= 100
399399
if magic < 9 or magic > 11:
400-
raise ParsingError(filepath, f"{magic=} not supported")
400+
raise ParsingError(filepath, f"{magic=:d} not supported")
401401

402402
header_info = _HeaderInfo(magic, nval, sfield, readbin, {})
403403
header = header_info.header

0 commit comments

Comments
 (0)