Bläddra i källkod

more fixes for ci

Eric Charles 5 år sedan
förälder
incheckning
0486bfe68e
1 ändrade filer med 6 tillägg och 1 borttagningar
  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)