From 9f06613838bb4e222527d2a27dd29a5e0f298df4 Mon Sep 17 00:00:00 2001 From: DonFreed Date: Wed, 14 Aug 2024 10:56:13 -0700 Subject: [PATCH] Handle non-unicode output in version strings --- sentieon_cli/util.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sentieon_cli/util.py b/sentieon_cli/util.py index 2565994..4e48558 100644 --- a/sentieon_cli/util.py +++ b/sentieon_cli/util.py @@ -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: