Skip to content

Commit

Permalink
Merge pull request #475 from davidbrochart/fix_kernel_lookup
Browse files Browse the repository at this point in the history
Fix kernel lookup
  • Loading branch information
kevin-bates authored Apr 12, 2021
2 parents 02cc7d7 + 276762e commit 5dfdb1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jupyter_server/services/kernels/kernelmanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ def kernel_model(self, kernel_id):
"name": kernel.kernel_name,
"last_activity": isoformat(kernel.last_activity),
"execution_state": kernel.execution_state,
"connections": self._kernel_connections[kernel_id],
"connections": self._kernel_connections.get(kernel_id, 0),
}
return model

Expand Down

0 comments on commit 5dfdb1d

Please sign in to comment.