Skip to content

Commit

Permalink
Merge pull request #479 from jtpio/answer-yes
Browse files Browse the repository at this point in the history
Re-enable support for answer_yes flag
  • Loading branch information
blink1073 authored Apr 16, 2021
2 parents dc2a5b5 + 9fb3729 commit a715321
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions jupyter_server/serverapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -1618,6 +1618,13 @@ def _confirm_exit(self):
"""
info = self.log.info
info(_i18n('interrupted'))
# Check if answer_yes is set
if self.answer_yes:
self.log.critical(_("Shutting down..."))
# schedule stop on the main thread,
# since this might be called from a signal handler
self.io_loop.add_callback_from_signal(self.io_loop.stop)
return
print(self.running_server_info())
yes = _i18n('y')
no = _i18n('n')
Expand Down

0 comments on commit a715321

Please sign in to comment.