Skip to content

Commit 7a04ce2

Browse files
committed
Fix application exit
1 parent 3135bd6 commit 7a04ce2

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

jupyter_server/extension/application.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
from tornado.log import LogFormatter
1717
from tornado.web import RedirectHandler
1818

19-
from jupyter_core.application import JupyterApp
19+
from jupyter_core.application import JupyterApp, NoStart
2020

2121
from jupyter_server.serverapp import ServerApp
2222
from jupyter_server.transutils import _
@@ -501,4 +501,7 @@ def launch_instance(cls, argv=None, **kwargs):
501501
"{ext_name} is running without loading "
502502
"other extensions.".format(ext_name=cls.name)
503503
)
504-
serverapp.start()
504+
try:
505+
serverapp.start()
506+
except NoStart:
507+
pass

0 commit comments

Comments
 (0)