We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d15bbb9 + 80ff18a commit b39e0abCopy full SHA for b39e0ab
index.ts
@@ -135,7 +135,8 @@ export class PythonShell extends EventEmitter{
135
this.mode = options.mode || 'text';
136
this.formatter = resolve('format', options.formatter || this.mode);
137
this.parser = resolve('parse', options.parser || this.mode);
138
- this.stderrParser = resolve('parse', options.stderrParser || this.mode);
+ // We don't expect users to ever format stderr as JSON so we default to text mode
139
+ this.stderrParser = resolve('parse', options.stderrParser || 'text');
140
this.terminated = false;
141
this.childProcess = spawn(pythonPath, this.command, options);
142
0 commit comments