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.
1 parent ac6d461 commit 2c11eeeCopy full SHA for 2c11eee
src/packages/frontend/jupyter/browser-actions.ts
@@ -237,7 +237,12 @@ export class JupyterActions extends JupyterActions0 {
237
try {
238
resp = await this.api_call_formatter(code, config);
239
} catch (err) {
240
- err.formatInput = code;
+ try {
241
+ err.formatInput = code;
242
+ } catch (_err) {
243
+ // it's possible that err = 'timeout', which is a string, and then the above fails.
244
+ // to see this, disconnect your laptop from the internet then try to format a cell.
245
+ }
246
throw err;
247
}
248
resp = parsing.process_magics(resp, config.syntax, "unescape");
0 commit comments