fix: Handle None text values in Claude conversations importer (#353)

Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com>
Co-authored-by: Paul Hernandez <phernandez@users.noreply.github.com>
This commit is contained in:
Paul Hernandez
2025-10-15 16:08:57 -05:00
committed by GitHub
parent 994c8b8e7e
commit bd6c8348b8
2 changed files with 57 additions and 1 deletions
@@ -153,7 +153,11 @@ class ClaudeConversationsImporter(Importer[ChatImportResult]):
# Handle message content
content = msg.get("text", "")
if msg.get("content"):
content = " ".join(c.get("text", "") for c in msg["content"])
# Filter out None values before joining
content = " ".join(
str(c.get("text", "")) for c in msg["content"]
if c and c.get("text") is not None
)
lines.append(content)
# Handle attachments