Skip to content

Commit

Permalink
Add cli check
Browse files Browse the repository at this point in the history
  • Loading branch information
matejmatuska committed Jun 28, 2024
1 parent 8bd5c92 commit eae9c9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion leapp/snactor/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def _load_commands_from(path):
spec = importer.find_spec(name)
mod = importlib.util.module_from_spec(spec)
# sys.modules[name] = module
if hasattr(mod.cli, 'command'):
if hasattr(mod, 'cli') and hasattr(mod.cli, 'command'):
if not mod.cli.command.parent:
cli.command.add_sub(mod.cli.command)

Expand Down

0 comments on commit eae9c9a

Please sign in to comment.