Skip to content

Commit

Permalink
another abort...
Browse files Browse the repository at this point in the history
  • Loading branch information
thebjorn committed Jan 17, 2025
1 parent cf5d1de commit a19c023
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions seeqret/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ def validate_current_user():
# print("USERS:", storage.fetch_users(username=user))
if not storage.fetch_users(username=user):
click.secho("You are not a valid user of this vault", fg='red')
os.abort()
return False
return True


@click.group(context_settings=CONTEXT_SETTINGS)
Expand All @@ -44,7 +45,8 @@ def cli(ctx, log):
"curdir": os.getcwd(),
}
if is_initialized():
validate_current_user()
if not validate_current_user():
ctx.fail("You are not a valid user of this vault")


@cli.command()
Expand Down

0 comments on commit a19c023

Please sign in to comment.