Skip to content

Commit

Permalink
Update decode.py
Browse files Browse the repository at this point in the history
  • Loading branch information
gfireman authored Oct 12, 2023
1 parent ff39b8d commit 0a1cc9d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ccsdspy/decode.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,9 @@ def _decode_variable_length(file_bytes, fields):

if offset != len(file_bytes):
missing_bytes = offset - len(file_bytes)
message = f"File appears truncated - missing {missing_bytes} bytes (or maybe garbage at end)"
message = (

Check warning on line 289 in ccsdspy/decode.py

View check run for this annotation

Codecov / codecov/patch

ccsdspy/decode.py#L288-L289

Added lines #L288 - L289 were not covered by tests
f"File appears truncated - missing {missing_bytes} bytes (or maybe garbage at end)"
)
warnings.warn(message)

Check warning on line 292 in ccsdspy/decode.py

View check run for this annotation

Codecov / codecov/patch

ccsdspy/decode.py#L292

Added line #L292 was not covered by tests

npackets = len(packet_starts)
Expand Down

0 comments on commit 0a1cc9d

Please sign in to comment.