Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Actually only return output on one of the expected calls.
  • Loading branch information
rchiodo committed Feb 14, 2020
commit c4fb9d6ce676ed1add225d7fda6b5f32abc31617
3 changes: 2 additions & 1 deletion src/client/datascience/jupyter/interpreter/jupyterCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -245,11 +245,12 @@ export class InterpreterJupyterKernelSpecCommand extends InterpreterJupyterComma
if (args.join(' ').toLowerCase() === 'list --json') {
// Try getting kernels using python script, if that fails (even if there's output in stderr) rethrow original exception.
output = await this.getKernelSpecList(interpreter, options);
return output;
} else if (args.join(' ').toLowerCase() === '--version') {
// Try getting kernelspec version using python script, if that fails (even if there's output in stderr) rethrow original exception.
output = await this.getKernelSpecVersion(interpreter, options);
return output;
}
return output;
} catch (innerEx) {
traceError('Failed to get a list of the kernelspec using python script', innerEx);
}
Expand Down