mirror of
https://github.com/jupyter/notebook.git
synced 2025-03-13 13:17:50 +08:00
Merge pull request #5546 from renaud/master
do not shutdown notebook if 'n' is part of answer
This commit is contained in:
commit
c9438bdfcd
@ -708,7 +708,7 @@ class NotebookApp(BaseIPythonApplication):
|
||||
r,w,x = select.select([sys.stdin], [], [], 5)
|
||||
if r:
|
||||
line = sys.stdin.readline()
|
||||
if line.lower().startswith('y'):
|
||||
if line.lower().startswith('y') and 'n' not in line.lower():
|
||||
self.log.critical("Shutdown confirmed")
|
||||
ioloop.IOLoop.instance().stop()
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user