Skip to content

Commit

Permalink
ignore empty lines when parsing listDataFrames output
Browse files Browse the repository at this point in the history
  • Loading branch information
vieiralucas committed Jan 2, 2025
1 parent 6174a96 commit ef22a60
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion apps/api/src/python/query/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,12 @@ del _briefer_list_dataframes`
for (const output of outputs) {
if (output.type === 'stdio' && output.name === 'stdout') {
const lines = output.text.trim().split('\n')
for (const line of lines) {
for (const l of lines) {
const line = l.trim()
if (line === '') {
continue
}

const parsed = jsonString
.pipe(
z.array(
Expand Down

0 comments on commit ef22a60

Please sign in to comment.