瀏覽代碼

more fixes for ci

Eric Charles 5 年之前
父節點
當前提交
0486bfe68e
共有 1 個文件被更改,包括 6 次插入1 次删除
  1. 6 1
      jupyterlab/labapp.py

+ 6 - 1
jupyterlab/labapp.py

@@ -12,6 +12,7 @@ import sys
 from jinja2 import Environment, FileSystemLoader
 
 from jupyter_core.application import JupyterApp, base_aliases, base_flags
+from jupyter_core.application import NoStart
 from jupyterlab_server import slugify, WORKSPACE_EXTENSION
 from jupyter_server.serverapp import aliases, flags
 from jupyter_server.utils import url_path_join as ujoin
@@ -382,7 +383,11 @@ class LabWorkspaceApp(JupyterApp):
     )
 
     def start(self):
-        super().start()
+        try:
+            super().start()
+        except NoStart:
+            # TODO(@echarles) Discuss with @Zsailer on this...
+            pass
         print('Either `export` or `import` must be specified.')
         self.exit(1)