Skip to content

Commit 103c23d

Browse files
committed
release v0.9.2
1 parent 4e5eb16 commit 103c23d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

codeflash/verification/parse_test_output.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,12 @@ def parse_test_return_values_bin(file_location: Path, test_files: TestFiles, tes
4949
if not len_next_bytes:
5050
return test_results
5151
len_next = int.from_bytes(len_next_bytes, byteorder="big")
52-
encoded_test_name = file.read(len_next).decode("ascii")
52+
try:
53+
encoded_test_name = file.read(len_next).decode("ascii")
54+
except Exception as e:
55+
if DEBUG_MODE:
56+
logger.exception(f"Failed to load test name. Exception: {e}")
57+
return test_results
5358
duration_bytes = file.read(8)
5459
duration = int.from_bytes(duration_bytes, byteorder="big")
5560
len_next_bytes = file.read(4)

0 commit comments

Comments
 (0)