Skip to content

Commit

Permalink
Handle non-unicode output in version strings
Browse files Browse the repository at this point in the history
  • Loading branch information
DonFreed committed Aug 14, 2024
1 parent d4e61d6 commit 9f06613
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sentieon_cli/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ def check_version(
return True

cmd_list.append("--version")
cmd_version_str = sp.check_output(cmd_list).decode("utf-8").strip()
cmd_version_str = (
sp.check_output(cmd_list).decode("utf-8", "ignore").strip()
)
if cmd_list[0] == "sentieon":
cmd_version_str = cmd_version_str.split("-")[-1]
else:
Expand Down

0 comments on commit 9f06613

Please sign in to comment.