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):
584
584
metadata_header ),
585
585
_MultiGCSFileReader (),
586
586
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
+ ])
589
591
return data
590
592
591
593
@property
@@ -607,8 +609,10 @@ def result(self):
607
609
StreamType .RESULT , metadata_header ),
608
610
_MultiGCSFileReader (),
609
611
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
+ ])
612
616
return data
613
617
return self ._task .result_url
614
618
You can’t perform that action at this time.
0 commit comments