Skip to content

Commit

Permalink
fix: handle decoding errors for dcm_format and update version to 0.1.10
Browse files Browse the repository at this point in the history
  • Loading branch information
c0sogi committed Dec 20, 2024
1 parent c7a1ce4 commit 776a88e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion dcm/dcm.py
Original file line number Diff line number Diff line change
Expand Up @@ -969,7 +969,10 @@ def __str__(self) -> str:
+ ls2
)
# Print the file version
output += f"KONSERVIERUNG_FORMAT {self.dcm_format or 2.0}" + ls2
output += (
f"KONSERVIERUNG_FORMAT {self.dcm_format.decode(errors="replace") or 2.0}"
+ ls2
)

# Print the other comments
output += (
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "python-dcm"
version = "0.1.9"
version = "0.1.10"
description = "A high-performance Python package for handling ETAS DCM(Data Conversion Format) files used in engine calibration tools like INCA, MDA, EHANDBOOK, and CANape."
authors = ["c0sogi <dcas@naver.com>"]
license = "MIT"
Expand Down

0 comments on commit 776a88e

Please sign in to comment.