Skip to content

Commit c0584b3

Browse files
author
Steven Silvester
committed
fix 500 error for missing package description
1 parent 4700a64 commit c0584b3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jupyterlab/handlers/extension_manager_handler.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def list_extensions(self):
9797
status = 'warning'
9898
extensions.append(_make_extension_entry(
9999
name=name,
100-
description=pkg_info['description'],
100+
description=pkg_info.get('description', ''),
101101
url=data['url'],
102102
enabled=(name not in info['disabled']),
103103
core=False,
@@ -112,7 +112,7 @@ def list_extensions(self):
112112
if data is not None:
113113
extensions.append(_make_extension_entry(
114114
name=name,
115-
description=data['description'],
115+
description=data.get('description', ''),
116116
url=data.get('homepage', ''),
117117
installed=False,
118118
enabled=False,

0 commit comments

Comments
 (0)