Skip to content

Commit ab1d1d9

Browse files
authored
fix: ignore empty records (#86)
Skip empty records from parsing.
1 parent c4abb26 commit ab1d1d9

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.github/workflows/build.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ jobs:
2020
run: tox -e lint
2121
- name: Build binary 🔢
2222
run: pyinstaller "main.spec"
23+
- name: Upload generated binary 👩‍💻
24+
uses: actions/upload-artifact@v4
25+
with:
26+
name: generated-excutable
27+
path: .\dist\ms_teams_parser.exe
28+
retention-days: 1
2329
- name: Run conversion ↩️
2430
run: |
2531
.\dist\ms_teams_parser.exe -f ".\forensicsim-data\jane_doe_v_1_4_00_11161\IndexedDB\https_teams.microsoft.com_0.indexeddb.leveldb" -o "jane_doe_v_1_4_00_11161.json"

src/forensicsim/backend.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,9 @@ def parse_db(
155155
obj_store = db[obj_store_name]
156156
records_per_object_store = 0
157157
for record in obj_store.iterate_records():
158+
# skip empty records
159+
if record.external_value_path is None or record.value is None:
160+
continue
158161
records_per_object_store += 1
159162
# TODO: Fix None values
160163
state = None

0 commit comments

Comments
 (0)