Skip to content

Commit f93b3a6

Browse files
committed
ignore errors when disposing
1 parent 394a216 commit f93b3a6

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/client/jupyter/jupyter_client-Kernel.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export class JupyterClientKernel extends Kernel {
1212
}
1313

1414
public dispose() {
15-
this.shutdown();
15+
this.shutdown().catch(()=>{});
1616
super.dispose();
1717
};
1818

src/client/jupyter/jupyter_client/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export class JupyterClientAdapter extends EventEmitter implements IJupyterClient
2727

2828
public dispose() {
2929
try {
30-
this.ipythonAdapter.sendKernelCommand(this.lastStartedKernelUUID, KernelCommand.shutdown);
30+
this.ipythonAdapter.sendKernelCommand(this.lastStartedKernelUUID, KernelCommand.shutdown).catch(()=>{});
3131
}
3232
catch (ex) {
3333
}

0 commit comments

Comments
 (0)