Quotations and catch error
This commit is contained in:
parent
8ee656c067
commit
14f5a85bd8
@ -86,15 +86,15 @@ async function main() {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
py.stderr.on('data', (data) => {
|
py.stderr.on("data", (data) => {
|
||||||
console.error('[PY ERR]', data.toString());
|
console.error("[PY ERR]", data.toString());
|
||||||
});
|
});
|
||||||
|
|
||||||
py.on('close', (code) => {
|
py.on("close", (code) => {
|
||||||
console.log('Python exited with code', code);
|
console.log("Python exited with code", code);
|
||||||
});
|
});
|
||||||
|
|
||||||
processor('assistant', `${config.DEVICE_ID}`, "commands");
|
processor("assistant", `${config.DEVICE_ID}`, "commands").catch(console.error);
|
||||||
}
|
}
|
||||||
|
|
||||||
main().catch(console.error);
|
main().catch(console.error);
|
||||||
Loading…
Reference in New Issue
Block a user