Open MacTheZazou opened 5 years ago
odd... are you sure that's an actual error and not just the logging of the error when you do console.log?
Try adding a console.log("Finished") at the end and see if that gets called.
i'm facing the similar issue too, if there is syntax error its crashing the node
Same here. Are there alternatives to this library?
Same here...
In my case, define error prevent node process exit. let pyshell = new PythonShell(filename, options);
pyshell.on('error', function (err) { console.log(' error ', err); })
Additionally, I also defined
pyshell.on('message' pyshell.on('stderr' pyshell.on('error' pyshell.on('close'
This worked for me too @muyoungko. Saved my life! Thanks
I try to run a script and communicate with Python, but if Python gets an error, it always crashes node... How can I handle those exceptions?
The error:
Thank you very much