@@ -12,7 +12,7 @@ import {
12
12
import { URLExt } from '@jupyterlab/coreutils' ;
13
13
import { INotebookCellExecutor } from '@jupyterlab/notebook' ;
14
14
import { OutputPrompt , Stdin } from '@jupyterlab/outputarea' ;
15
- import { ServerConnection } from '@jupyterlab/services' ;
15
+ import { Kernel , ServerConnection } from '@jupyterlab/services' ;
16
16
import * as KernelMessage from '@jupyterlab/services/lib/kernel/messages' ;
17
17
import { nullTranslator , type ITranslator } from '@jupyterlab/translation' ;
18
18
import { PromiseDelegate } from '@lumino/coreutils' ;
@@ -126,12 +126,15 @@ export class NotebookCellServerExecutor implements INotebookCellExecutor {
126
126
) ;
127
127
const data = await response . json ( ) ;
128
128
success = data [ 'status' ] === 'ok' ;
129
- } catch ( error : any ) {
130
- onCellExecuted ( { cell, success : false , error } ) ;
129
+ } catch ( error : unknown ) {
130
+ onCellExecuted ( {
131
+ cell,
132
+ success : false
133
+ } ) ;
131
134
if ( cell . isDisposed ) {
132
135
return false ;
133
136
} else {
134
- throw await ServerConnection . ResponseError . create ( error ) ;
137
+ throw error ;
135
138
}
136
139
}
137
140
@@ -199,7 +202,7 @@ async function requestServer(
199
202
) ;
200
203
} ) ;
201
204
}
202
- } ) as any ,
205
+ } ) as Kernel . IShellFuture ,
203
206
parent_header,
204
207
password : input_request . password ,
205
208
prompt : input_request . prompt ,
0 commit comments