Skip to content

Commit b17b154

Browse files
fix: handle list content in telemetry event validation
1 parent 518945d commit b17b154

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

scrapegraphai/telemetry/telemetry.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,9 @@ def _build_valid_telemetry_event(
9999
"""Build and validate a TelemetryEvent. Returns None if validation fails."""
100100
url: str | None = source[0] if isinstance(source, list) and source else None
101101

102+
if isinstance(content, list):
103+
content = "\n".join(str(c) for c in content)
104+
102105
json_schema: str | None = None
103106
if isinstance(schema, dict):
104107
try:

0 commit comments

Comments
 (0)