First, thanks for this module, I recently started to play with it and felt like I could contribute :)
As mentioned in this pyshell issue, when using {mode: 'json'}, a JSON parsing error is thrown instead of being returned through the callback, such as SyntaxError: Unexpected token T in JSON at position 0.
A workaround for this is to stringify the stderr output to correctly retrieve the python error.
First, thanks for this module, I recently started to play with it and felt like I could contribute :)
As mentioned in this pyshell issue, when using
{mode: 'json'}
, a JSON parsing error is thrown instead of being returned through the callback, such asSyntaxError: Unexpected token T in JSON at position 0
. A workaround for this is to stringify the stderr output to correctly retrieve the python error.