Skip to content

Commit 35f1e76

Browse files
committed
Catch error when shutting down kernel from the control channel
1 parent dcde5cf commit 35f1e76

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ipykernel/eventloops.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,10 @@ def start(self):
285285

286286
@loop_tk.exit
287287
def loop_tk_exit(kernel):
288-
kernel.app_wrapper.app.destroy()
288+
try:
289+
kernel.app_wrapper.app.destroy()
290+
except RuntimeError:
291+
pass
289292

290293

291294
@register_integration('gtk')

0 commit comments

Comments
 (0)