Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions biometrics/load_raw_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ def _decode_cbor_file(file_path: str, data: dict, start_time, end_time, side: Si

# Decode the next CBOR object
row = cbor2.load(raw_data)
# Skip records with empty data (malformed records)
if not row.get('data'):
continue
decoded_data = cbor2.loads(row['data'])
if not decoded_data['type'] in load_raw_types:
continue
Expand Down