Skip to content

Commit 0b88ab4

Browse files
committed
Fix multiline output export-v2
1 parent 76c981b commit 0b88ab4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

libs/labelbox/src/labelbox/schema/export_task.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -584,8 +584,10 @@ def errors(self):
584584
metadata_header),
585585
_MultiGCSFileReader(),
586586
JsonConverter(),
587-
).start(stream_handler=lambda output: data.append(
588-
json.loads(output.json_str)))
587+
).start(stream_handler=lambda output: [
588+
data.append(json.loads(row)) for row in output.json_str.split(
589+
'\n') if row
590+
])
589591
return data
590592

591593
@property

0 commit comments

Comments
 (0)