Skip to content

Commit

Permalink
Ensure there is a disabled_key (#138)
Browse files Browse the repository at this point in the history
  • Loading branch information
afshin authored Dec 3, 2020
1 parent c2c42fa commit e3c4709
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions jupyterlab_server/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ def get_page_config(labextensions_path, app_settings_dir=None, logger=None):

federated_exts = get_federated_extensions(labextensions_path)

# Ensure there is a disabled key
page_config.setdefault(disabled_key, {})

for (ext, ext_data) in federated_exts.items():
if not '_build' in ext_data['jupyterlab']:
logger.warn('%s is not a valid extension' % ext_data['name'])
Expand Down

0 comments on commit e3c4709

Please sign in to comment.