Skip to content

Commit

Permalink
Merge pull request #410 from fcollonval/patch-2
Browse files Browse the repository at this point in the history
Correct logging message position
  • Loading branch information
Zsailer authored Feb 15, 2021
2 parents b993b2d + a83f567 commit d6f5a4e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions jupyter_server/extension/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,16 +54,17 @@ def get_metadata(package_name, logger=None):
# _jupyter_server_extension_paths. We will remove in
# a later release of Jupyter Server.
try:
return module, module._jupyter_server_extension_paths()
except AttributeError:
extension_points = module._jupyter_server_extension_paths()
if logger:
logger.debug(
logger.warning(
"A `_jupyter_server_extension_points` function was not "
"found in {name}. Instead, a `_jupyter_server_extension_paths` "
"function was found and will be used for now. This function "
"name will be deprecated in future releases "
"of Jupyter Server.".format(name=package_name)
)
return module, extension_points
except AttributeError:
pass

# Dynamically create metadata if the package doesn't
Expand Down Expand Up @@ -92,4 +93,4 @@ def validate_extension(name):
If this works, nothing should happen.
"""
from .manager import ExtensionPackage
return ExtensionPackage(name=name)
return ExtensionPackage(name=name)

0 comments on commit d6f5a4e

Please sign in to comment.