Skip to content

Commit

Permalink
Merge pull request #877 from ccordoba12/catch-error-tk-exit
Browse files Browse the repository at this point in the history
  • Loading branch information
blink1073 authored Feb 28, 2022
2 parents dcde5cf + 35f1e76 commit d6744f9
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 d6744f9

Please sign in to comment.