Skip to content
Snippets Groups Projects
Commit fb570203 authored by David Douard's avatar David Douard
Browse files

Fix entry point loading in the swh cli

Migration to importlib introduced a bug when loading swh cli
entrypoints: the entry point group name must be given with a named
argument.
parent 0d29c078
No related branches found
No related tags found
No related merge requests found
......@@ -155,7 +155,7 @@ def main():
# for the next few logging statements
logging.basicConfig()
# load plugins that define cli sub commands
for entry_point in entry_points("swh.cli.subcommands"):
for entry_point in entry_points(group="swh.cli.subcommands"):
try:
cmd = entry_point.load()
if isinstance(cmd, click.BaseCommand):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment