Skip to content

Commit 9f5993e

Browse files
committed
Fix small bug in ID extraction.
1 parent 4e3c789 commit 9f5993e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/headhunter/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ class ParsedText:
217217

218218
def __post_init__(self) -> None:
219219
"""Auto-generate ID from content hash if not provided or empty in metadata."""
220-
existing_id = self.metadata["id"]
220+
existing_id = self.metadata.get("id")
221221
id_is_empty = (
222222
existing_id is None
223223
or pd.isna(existing_id)

0 commit comments

Comments
 (0)