Skip to content

Commit

Permalink
Backport PR jupyter-server#878: Show import error when faiing to load…
Browse files Browse the repository at this point in the history
… an extension
  • Loading branch information
minrk authored and meeseeksmachine committed Jun 16, 2022
1 parent 1aa1250 commit c1de9d9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions jupyter_server/extension/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,10 +175,10 @@ def _validate_name(self, proposed):
self._extension_points = {}
try:
self._module, self._metadata = get_metadata(name)
except ImportError:
except ImportError as e:
raise ExtensionModuleNotFound(
"The module '{name}' could not be found. Are you "
"sure the extension is installed?".format(name=name)
"The module '{name}' could not be found ({e}). Are you "
"sure the extension is installed?".format(name=name, e=e)
)
# Create extension point interfaces for each extension path.
for m in self._metadata:
Expand Down

0 comments on commit c1de9d9

Please sign in to comment.