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 capture the exception on the new code
  • Loading branch information
rchiodo committed Feb 14, 2020
commit 7dae94f21c0ec0730e563fbc03cd4f79175ce2b4
4 changes: 2 additions & 2 deletions src/client/datascience/jupyter/interpreter/jupyterCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -244,10 +244,10 @@ export class InterpreterJupyterKernelSpecCommand extends InterpreterJupyterComma
try {
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.
return this.getKernelSpecList(interpreter, options);
output = await this.getKernelSpecList(interpreter, options);
} 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.
return this.getKernelSpecVersion(interpreter, options);
output = await this.getKernelSpecVersion(interpreter, options);
}
} catch (innerEx) {
traceError('Failed to get a list of the kernelspec using python script', innerEx);
Expand Down