midi: fix midi list() (handle extra python logs properly)
This commit is contained in:
parent
25425c69f6
commit
d1b497af3d
1 changed files with 4 additions and 2 deletions
|
|
@ -63,7 +63,7 @@ class MidiConverter {
|
|||
try {
|
||||
[name, data] = JSON.parse(message)
|
||||
} catch (err) {
|
||||
if (settings.read('debug')) console.error(`(DEBUG, MIDI) Could not parse python's output:\n ${message}`)
|
||||
if (settings.read('debug')) console.error(`(DEBUG, MIDI) Unparsed python log:\n ${message}`)
|
||||
}
|
||||
if (name == 'log') {
|
||||
if (data.indexOf('ERROR') > -1) {
|
||||
|
|
@ -93,7 +93,9 @@ class MidiConverter {
|
|||
}
|
||||
}
|
||||
|
||||
MidiConverter.parseIpc(results)
|
||||
for (let r of results) {
|
||||
MidiConverter.parseIpc(r)
|
||||
}
|
||||
})
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue