Skip to content

Commit

Permalink
Catch error when shutting down kernel from the control channel
Browse files Browse the repository at this point in the history
  • Loading branch information
ccordoba12 committed Feb 27, 2022
1 parent dcde5cf commit 35f1e76
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ipykernel/eventloops.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,10 @@ def start(self):

@loop_tk.exit
def loop_tk_exit(kernel):
kernel.app_wrapper.app.destroy()
try:
kernel.app_wrapper.app.destroy()
except RuntimeError:
pass


@register_integration('gtk')
Expand Down

0 comments on commit 35f1e76

Please sign in to comment.