Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Aug 14, 2023
1 parent 9b114a1 commit 14e1b0c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions aiidalab_launch/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,10 +242,12 @@ def remove_profile(ctx, app_state, profile, yes, force, purge):
raise click.ClickException(f"Profile with name '{prof}' does not exist.")
else:
if purge:
ctx.invoke(reset, profile=profile, yes=yes)
ctx.invoke(reset, profile=profile, yes=yes)

if not force:
instance = AiidaLabInstance(client=app_state.docker_client, profile=profile)
instance = AiidaLabInstance(
client=app_state.docker_client, profile=profile
)
status = asyncio.run(instance.status())
if status not in (
instance.AiidaLabInstanceStatus.DOWN,
Expand Down

0 comments on commit 14e1b0c

Please sign in to comment.