Explorar o código

Account for extensions that cannot be located

Steven Silvester %!s(int64=8) %!d(string=hai) anos
pai
achega
fe2f92a430
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      jupyterlab/__init__.py

+ 3 - 0
jupyterlab/__init__.py

@@ -75,6 +75,9 @@ class LabHandler(IPythonHandler):
         # Gather the lab extension files and entry points.
         for name in labextensions:
             data = get_labextension_manifest_data_by_name(name)
+            if data is None:
+                self.log.warn('Could not locate extension: ' + name)
+                continue
             for value in data.values():
                 if value.get('entry', None):
                     entries.append(value['entry'])