Skip to content

Commit 30c43db

Browse files
Update graphgen/models/reader/jsonl_reader.py
Co-authored-by: Copilot <[email protected]>
1 parent 7c66cd7 commit 30c43db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graphgen/models/reader/jsonl_reader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def read(self, file_path: str) -> List[Dict[str, Any]]:
1212
for line in f:
1313
try:
1414
doc = json.loads(line)
15-
if doc["type"] == "text" and self.text_column not in doc:
15+
if doc.get("type") == "text" and self.text_column not in doc:
1616
raise ValueError(
1717
f"Missing '{self.text_column}' in document: {doc}"
1818
)

0 commit comments

Comments
 (0)