mirror of
https://github.com/denoland/deno.git
synced 2025-03-03 09:31:22 -05:00
set evalue
to a one space string for truthiness on old jupyter (#20531)
"Fixes" the exception display issue of #20524 on older versions of Jupyter that required `evalue` to be truthy. For now, until we can do proper processing of the `ExceptionDetails` this will make Jupyter Notebook 6.5.1 and below happy. This is the alternative "just work now" PR to #20530
This commit is contained in:
parent
e995ba66cd
commit
3b2e553b05
1 changed files with 2 additions and 2 deletions
|
@ -358,7 +358,7 @@ impl JupyterServer {
|
|||
.new_message("error")
|
||||
.with_content(json!({
|
||||
"ename": err.to_string(),
|
||||
"evalue": "",
|
||||
"evalue": " ", // Fake value, otherwise old Jupyter frontends don't show the error
|
||||
"traceback": [],
|
||||
}))
|
||||
.send(&mut *self.iopub_socket.lock().await)
|
||||
|
@ -425,7 +425,7 @@ impl JupyterServer {
|
|||
.new_message("error")
|
||||
.with_content(json!({
|
||||
"ename": name,
|
||||
"evalue": "",
|
||||
"evalue": " ", // Fake value, otherwise old Jupyter frontends don't show the error
|
||||
"traceback": [],
|
||||
}))
|
||||
.send(&mut *self.iopub_socket.lock().await)
|
||||
|
|
Loading…
Add table
Reference in a new issue