Explorar el Código

Fix handling of lab page when there is no extension config

Steven Silvester hace 8 años
padre
commit
7af89c369b
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      jupyterlab/labapp.py

+ 2 - 1
jupyterlab/labapp.py

@@ -130,7 +130,8 @@ class LabHandler(IPythonHandler):
 def get_extensions(lab_config):
     """Get the valid extensions from lab config."""
     extensions = dict()
-    for (name, ext_config) in lab_config.labextensions.items():
+    labextensions = lab_config.get('labextensions', {})
+    for (name, ext_config) in labextensions.items():
         if not ext_config['enabled']:
             continue
         folder = find_labextension(name)