File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
libs/labelbox/src/labelbox/schema Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff 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
@@ -607,8 +609,10 @@ def result(self):
607609 StreamType .RESULT , metadata_header ),
608610 _MultiGCSFileReader (),
609611 JsonConverter (),
610- ).start (stream_handler = lambda output : data .append (
611- json .loads (output .json_str )))
612+ ).start (stream_handler = lambda output : [
613+ data .append (json .loads (row )) for row in output .json_str .split (
614+ '\n ' ) if row
615+ ])
612616 return data
613617 return self ._task .result_url
614618
You can’t perform that action at this time.
0 commit comments