Skip to content

Commit 54879c9

Browse files
committed
add-error-in-results
1 parent 8bf649c commit 54879c9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

jupyter_server_nbmodel/actions.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,7 @@ async def kernel_worker(
275275
queue.task_done()
276276
get_logger().debug(f"Execution request {uid} processed for kernel {kernel_id}.")
277277
except (asyncio.CancelledError, KeyboardInterrupt, RuntimeError) as e:
278+
results[uid] = {"error": str(e)}
278279
get_logger().debug(
279280
f"Stopping execution requests worker for kernel {kernel_id}…", exc_info=e
280281
)

0 commit comments

Comments
 (0)